Equalizer  1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
configParams.h
1 
2 /* Copyright (c) 2005-2014, Stefan Eilemann <eile@equalizergraphics.com>
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_CONFIG_PARAMS_H
20 #define EQFABRIC_CONFIG_PARAMS_H
21 
22 #include <eq/fabric/api.h>
23 #include <eq/fabric/types.h>
24 #include <co/types.h>
25 
26 
27 namespace eq
28 {
29 namespace fabric
30 {
31 namespace detail { class ConfigParams; }
32 
35 {
36 public:
42  enum Flags
43  {
44  FLAG_NONE = LB_BIT_NONE,
45  FLAG_MULTIPROCESS = LB_BIT1,
49 
54  FLAG_LOAD_EQ_2D = LB_BIT7,
56  FLAG_LOAD_EQ_ALL = FLAG_LOAD_EQ_HORIZONTAL | FLAG_LOAD_EQ_VERTICAL |
60  };
61 
63  EQFABRIC_API ConfigParams();
64 
66  EQFABRIC_API ~ConfigParams();
67 
69  EQFABRIC_API ConfigParams( const ConfigParams& rhs );
70 
72  EQFABRIC_API ConfigParams& operator = ( const ConfigParams& rhs );
73 
84  EQFABRIC_API void setRenderClient( const std::string& renderClient );
85 
87  EQFABRIC_API const std::string& getRenderClient() const;
88 
96  EQFABRIC_API void setWorkDir( const std::string& workDir );
97 
102  EQFABRIC_API const std::string& getWorkDir() const;
103 
108  EQFABRIC_API void setFlags( const uint32_t flags );
109 
114  EQFABRIC_API uint32_t getFlags() const;
115 
117  EQFABRIC_API const Equalizer& getEqualizer() const;
118 
120  EQFABRIC_API Equalizer& getEqualizer();
121 
128  EQFABRIC_API void setPrefixes( const Strings& prefixes );
129 
131  EQFABRIC_API const Strings& getPrefixes() const;
132 
134  EQFABRIC_API void setGPUFilter( const std::string& regex );
135 
137  EQFABRIC_API const std::string& getGPUFilter() const;
139 
140  EQFABRIC_API void serialize( co::DataOStream& os ) const;
141  EQFABRIC_API void deserialize( co::DataIStream& is );
142 
143 private:
144  detail::ConfigParams* const _impl;
145 };
146 
147 EQFABRIC_API co::DataOStream& operator << ( co::DataOStream& os,
148  const ConfigParams& );
149 
150 EQFABRIC_API co::DataIStream& operator >> ( co::DataIStream& is,
151  ConfigParams& );
152 }
153 }
154 
155 #endif // EQFABRIC_CONFIG_PARAMS_H
Parameters for running a configuration.
Definition: configParams.h:34
EQFABRIC_API const std::string & getGPUFilter() const
EQFABRIC_API const std::string & getRenderClient() const
EQFABRIC_API void setWorkDir(const std::string &workDir)
Set the directory from which to launch the render client.
EQFABRIC_API const Equalizer & getEqualizer() const
EQFABRIC_API void setGPUFilter(const std::string &regex)
Set a regex filter matching to 'nodename:display.port'.
EQFABRIC_API void setPrefixes(const Strings &prefixes)
Set a list of network prefixes in CIDR notation for autoconfig network interface filtering.
EQFABRIC_API void setRenderClient(const std::string &renderClient)
Set the name of the render client executable.
Auto-config: one node per pipe.
Definition: configParams.h:45
Auto-config: 2D partition for load equalizer.
Definition: configParams.h:54
EQFABRIC_API uint32_t getFlags() const
Auto-config: use ethernet only.
Definition: configParams.h:47
Auto-config: horizontal partition for load equalizer.
Definition: configParams.h:50
Auto-config: vertical partition for load equalizer.
Definition: configParams.h:52
EQFABRIC_API ConfigParams()
Construct new configuration parameters.
EQFABRIC_API ~ConfigParams()
Destruct this configuration parameters.
one node per DB decomposition
Definition: configParams.h:46
EQFABRIC_API void setFlags(const uint32_t flags)
Base data transport class for equalizers.
Definition: equalizer.h:38
EQFABRIC_API const Strings & getPrefixes() const
EQFABRIC_API const std::string & getWorkDir() const