Equalizer  1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
admin/config.h
1 
2 /* Copyright (c) 2010-2014, Stefan Eilemann <eile@eyescale.ch>
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 2.1 as published
6  * by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef EQADMIN_CONFIG_H
19 #define EQADMIN_CONFIG_H
20 
21 #include <eq/admin/types.h> // typedefs
22 #include <eq/fabric/config.h> // base class
23 
24 namespace eq
25 {
26 namespace admin
27 {
28 class Config : public fabric::Config< Server, Config, Observer, Layout,
29  Canvas, Node, ConfigVisitor >
30 {
31 public:
34 
36  EQADMIN_API Config( ServerPtr parent );
37 
39  EQADMIN_API virtual ~Config();
40 
42  EQADMIN_API ClientPtr getClient();
43 
45  EQADMIN_API ConstClientPtr getClient() const;
46 
47  EQADMIN_API co::CommandQueue* getMainThreadQueue();
48 
50  EQADMIN_API virtual uint128_t commit( const uint32_t incarnation =
51  CO_COMMIT_NEXT );
52 
54  const Channel* findChannel( const std::string& name ) const
55  { return find< Channel >( name ); }
56 
57  void output( std::ostream& ) const {}
58  virtual bool mapViewObjects() const { return true; }
59  virtual bool mapNodeObjects() const { return true; }
60 };
61 }
62 }
63 
64 #endif // EQADMIN_CONFIG_H
65 
A visitor to traverse configs and all children.
Definition: admin/types.h:30
EQADMIN_API ClientPtr getClient()
virtual EQADMIN_API uint128_t commit(const uint32_t incarnation=CO_COMMIT_NEXT)
Commit all changes on this config and its children.
Base data class for a configuration.
Definition: fabric/config.h:33
Proxy object for the connection to an Equalizer server.
Definition: admin/server.h:35
EQADMIN_API Config(ServerPtr parent)
Construct a new config.
virtual EQADMIN_API ~Config()
Destruct a config.