Equalizer  1.2.1
co/base/global.h
00001 
00002 /* Copyright (c) 2010, Cedric Stalder <cedric.stalder@gmail.com> 
00003  *               2010-2011, Stefan Eilemann <eile@eyescale.ch>
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 COBASE_GLOBAL_H
00020 #define COBASE_GLOBAL_H
00021 
00022 #include <co/base/api.h>
00023 #include <co/base/lock.h> // member
00024 #include <co/base/types.h>
00025 #include <string>
00026 
00027 namespace co
00028 {
00029 namespace base
00030 {
00032     class Global
00033     {
00034     public:
00036         COBASE_API static PluginRegistry& getPluginRegistry();
00037 
00039         COBASE_API static ErrorRegistry& getErrorRegistry();
00040 
00044         enum IAttribute
00045         {
00046             IATTR_ROBUSTNESS,            
00047             IATTR_TIMEOUT_DEFAULT,       
00048             IATTR_ALL
00049         };
00050 
00052         COBASE_API static void setIAttribute( const IAttribute attr,
00053                                               const int32_t value );
00054 
00056         COBASE_API static int32_t getIAttribute( const IAttribute attr );
00058     private:
00059         friend COBASE_API bool init( const int argc, char** argv );
00060         friend COBASE_API bool exit();
00061     };
00062 }
00063 }
00064 
00065 #endif // EQ_GLOBAL_H
00066 
Generated on Fri Jun 8 2012 15:44:31 for Equalizer 1.2.1 by  doxygen 1.8.0