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

📄 preloader.hpp

📁 robocup rcssbase-11.1.0(1).zip
💻 HPP
字号:
// -*-c++-*-/***************************************************************************                              preloader.hpp                             -------------------                        Used to preload libs    begin                : 2003-Sep-01    copyright            : (C) 2003 by The RoboCup Soccer Simulator                            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 LGPL as published by the Free Software  * *   Foundation; either version 2 of the License, or (at your option) any  * *   later version.                                                        * *                                                                         * ***************************************************************************/#ifndef RCSS_LIB_PRELOADER_HPP#define RCSS_LIB_PRELOADER_HPP#include "../rcssbaseconfig.hpp"#include <vector>#include <string>namespace rcss{    namespace lib    {	class Preloader;    }}namespace rcss{    namespace lib    {        class Preloader        {        public:            typedef bool(*Initialize)();            typedef void(*Finalize)();			RCSSBASE_API            Preloader( const std::string& name,					   Initialize fin,					   Finalize init );			RCSSBASE_API            ~Preloader();            			RCSSBASE_API			const std::string&            name() const;			RCSSBASE_API            Initialize            init() const;			RCSSBASE_API            Finalize            fin() const;        private:            typedef std::vector< const Preloader* > Holder;            friend class PreloadLoader;            static            void            addLib( const Preloader& pre );                        static            void            remLib( const Preloader& pre );            static            Holder&            preloads();            static Holder s_preloads;             std::string m_name;            Initialize m_init;            Finalize m_fin;       };    }}#endif

⌨️ 快捷键说明

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