Equalizer  1.10.1
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fabric/global.h
1 
2 /* Copyright (c) 2010-2012, Stefan Eilemann <eile@eyescale.ch>
3  * 2012, Daniel Nachbaur <danielnachbaur@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQFABRIC_GLOBAL_H
20 #define EQFABRIC_GLOBAL_H
21 
22 #include <eq/fabric/api.h>
23 #include <eq/fabric/types.h>
24 
25 namespace eq
26 {
27 namespace fabric
28 {
30  class Global
31  {
32  public:
38  EQFABRIC_API static void setServer( const std::string& server );
39 
41  EQFABRIC_API static const std::string& getServer();
42 
44  EQFABRIC_API static ErrorRegistry& getErrorRegistry();
45 
46  EQFABRIC_API static void setFlags( const uint32_t flags );
47  EQFABRIC_API static uint32_t getFlags();
48 
50  EQFABRIC_API static void setPrefixes( const Strings& prefixes );
51  EQFABRIC_API static const Strings& getPrefixes();
52  };
53 }
54 }
55 #endif // EQFABRIC_GLOBAL_H
56 
static EQFABRIC_API ErrorRegistry & getErrorRegistry()
Defines export visibility macros for library EqualizerFabric.
Global parameter handling for the Equalizer fabric namespace.
Definition: fabric/global.h:30
The registry translating error codes to strings.
Definition: errorRegistry.h:41
static EQFABRIC_API void setServer(const std::string &server)
Set the default Equalizer server.
static EQFABRIC_API const std::string & getServer()