Equalizer  1.2.1
eq/client/global.h
00001 
00002 /* Copyright (c) 2005-2011, Stefan Eilemann <eile@equalizergraphics.com> 
00003  *                    2010, Cedric Stalder <cedric.stalder@gmail.com>
00004  *
00005  * This library is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Lesser General Public License version 2.1 as published
00007  * by the Free Software Foundation.
00008  *  
00009  * This library is distributed in the hope that it will be useful, but WITHOUT
00010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00011  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00012  * details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this library; if not, write to the Free Software Foundation, Inc.,
00016  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef EQ_GLOBAL_H
00020 #define EQ_GLOBAL_H
00021 
00022 #include <eq/client/api.h>
00023 #include <eq/client/init.h>       // friend
00024 #include <eq/client/types.h>
00025 
00026 #include <eq/fabric/global.h>     // base class
00027 #include <eq/fabric/iAttribute.h> // enum definition
00028 
00029 namespace eq
00030 {
00032     class Global : public fabric::Global
00033     {
00034     public:
00036         static NodeFactory* getNodeFactory() { return _nodeFactory; }
00037 
00048         EQ_API static void setConfigFile( const std::string& configFile );
00049 
00051         EQ_API static const std::string& getConfigFile();
00052 
00059         static void enterCarbon();
00060 
00062         static void leaveCarbon();
00063 
00064     private:
00065         EQ_API friend bool eq::_init( const int argc, char** argv,
00066                                       NodeFactory* nodeFactory );
00067         EQ_API friend bool eq::exit();
00068 
00069         static NodeFactory* _nodeFactory;
00070         static std::string  _configFile;
00071     };
00072 }
00073 
00074 #endif // EQ_GLOBAL_H
00075 
Generated on Fri Jun 8 2012 15:44:31 for Equalizer 1.2.1 by  doxygen 1.8.0