Equalizer  1.4.1
eq/client/global.h
00001 
00002 /* Copyright (c) 2005-2012, 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         static void setFlags( const uint32_t flags ) 
00065             { _flags = flags; }
00066         static uint32_t getFlags() { return _flags; } 
00067 
00068     private:
00069         EQ_API friend bool eq::_init( const int argc, char** argv,
00070                                       NodeFactory* nodeFactory );
00071         EQ_API friend bool eq::exit();
00072 
00073         static NodeFactory* _nodeFactory;
00074         static std::string  _configFile;
00075         static uint32_t     _flags;
00076     };
00077 }
00078 
00079 #endif // EQ_GLOBAL_H
00080 
Generated on Mon Nov 26 2012 14:41:49 for Equalizer 1.4.1 by  doxygen 1.7.6.1