zeitgeist.h
来自「rcssserver3d Robocup 3D比赛官方指定平台」· C头文件 代码 · 共 82 行
H
82 行
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id: zeitgeist.h,v 1.6 2004/03/12 08:51:54 rollmark Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*/#ifndef ZEITGEIST_ZEITGEIST_H#define ZEITGEIST_ZEITGEIST_H#include "core.h"#include "corecontext.h"#include "scriptserver/scriptserver.h"#include "logserver/logserver.h"#include <boost/shared_ptr.hpp>namespace zeitgeist{/** \class Zeitgeist is the main class, which initializes the Zeitgeist framework, manages the core and the main core context. It is the basic interface to the client code.*/class Zeitgeist{ // // functions //public: /** constructs the main core and starts the zeitgeist framework. dotName gives the name of the directory in the user's home directory, where the default init scripts are searched. */ Zeitgeist(std::string dotName); /** constructs the main core as above but changes the relative path prefix used by the ScriptServer prior to running the zeitgeist init script. */ Zeitgeist(std::string dotName, std::string relPathPrefix); ~Zeitgeist(); /** creates a new corecontext */ boost::shared_ptr<CoreContext> CreateContext(); /** returns a pointer to the main core */ boost::shared_ptr<Core>& GetCore();private: /** allocates and sets up the main core */ void ConstructCore(); /** runs the zeitgeist init script. dotName is the name of the users local directory, where the init scripts are searched */ void RunInitScript(std::string dotName); // // members //private: /** the main core */ boost::shared_ptr<Core> mCore;};} //namespace zeitgeist#endif //ZEITGEIST_ZEITGEIST_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?