Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

zeitgeist.h

Go to the documentation of this file.
00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
00002    this file is part of rcssserver3D
00003    Fri May 9 2003
00004    Copyright (C) 2002,2003 Koblenz University
00005    Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
00006    $Id: zeitgeist.h,v 1.6 2004/03/12 08:51:54 rollmark Exp $
00007 
00008    This program is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; version 2 of the License.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program; if not, write to the Free Software
00019    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 */
00021 #ifndef ZEITGEIST_ZEITGEIST_H
00022 #define ZEITGEIST_ZEITGEIST_H
00023 
00024 #include "core.h"
00025 #include "corecontext.h"
00026 #include "scriptserver/scriptserver.h"
00027 #include "logserver/logserver.h"
00028 #include <boost/shared_ptr.hpp>
00029 
00030 namespace zeitgeist
00031 {
00036 class Zeitgeist
00037 {
00038     //
00039     // functions
00040     //
00041 public:
00047     Zeitgeist(std::string dotName);
00048 
00053     Zeitgeist(std::string dotName, std::string relPathPrefix);
00054     ~Zeitgeist();
00055 
00057     boost::shared_ptr<CoreContext> CreateContext();
00058 
00060     boost::shared_ptr<Core>&  GetCore();
00061 
00062 private:
00064     void ConstructCore();
00065 
00069     void RunInitScript(std::string dotName);
00070 
00071     //
00072     // members
00073     //
00074 private:
00076     boost::shared_ptr<Core> mCore;
00077 };
00078 
00079 } //namespace zeitgeist
00080 
00081 #endif //ZEITGEIST_ZEITGEIST_H

Generated on Thu Apr 6 15:25:40 2006 for rcssserver3d by  doxygen 1.4.4