⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 base.hpp

📁 robocup 2D防真base平台 是运行/开发防真机器人的必备平台
💻 HPP
字号:
// -*-c++-*-/***************************************************************************                  base.hpp  - Part of the rcss::LibLoader testing program                             -------------------    begin                : 28-Aug-2003    copyright            : (C) 2003 by The RoboCup Soccer Server                            Maintenance Group.    email                : sserver-admin@lists.sourceforge.net ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU GPL as published by the Free Software   * *   Foundation; either version 2 of the License, or (at your option) any  * *   later version.                                                        * *                                                                         * ***************************************************************************/#include "../factory.hpp"#include "../shared_ptr.hpp"#include "../loader.hpp"#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(CYGWIN)  #ifdef BASE_EXPORTS    #define BASE_API __declspec(dllexport)    #define BASE_EXTERN  #else    #define BASE_API __declspec(dllimport)    #define BASE_EXTERN extern  #endif#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)  #define BASE_API  #define BASE_EXTERN extern#else  #define BASE_API  #define BASE_EXTERN#endifclass Base{public:    typedef rcss::lib::shared_ptr< Base > Ptr;    typedef Ptr(*Creator)();    typedef rcss::lib::Factory< Creator > Factory;	    BASE_API	virtual ~Base() {}    BASE_API	virtual int method() const = 0;    BASE_API	static    Factory&    factory();};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -