Equalizer  2.1.0
Parallel Rendering Framework
fabric/client.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_CLIENT_H
20 #define EQFABRIC_CLIENT_H
21 
22 #include <co/localNode.h> // base class
23 #include <eq/fabric/api.h>
24 #include <eq/fabric/types.h> // basic types
25 
26 namespace eq
27 {
28 namespace fabric
29 {
30 namespace detail
31 {
32 class Client;
33 }
34 
36 class Client : public co::LocalNode
37 {
38 public:
48  EQFABRIC_API bool connectServer(co::NodePtr server);
49 
57  EQFABRIC_API bool disconnectServer(co::NodePtr server);
58 
63  EQFABRIC_API void processCommand(
64  const uint32_t timeout = LB_TIMEOUT_INDEFINITE);
65 
67  virtual co::CommandQueue* getMainThreadQueue() = 0;
68 
70  EQFABRIC_API virtual bool dispatchCommand(co::ICommand& command);
71 
72 protected:
74  EQFABRIC_API Client();
75 
77  EQFABRIC_API virtual ~Client();
78 
79 private:
80  detail::Client* _impl;
81 };
82 }
83 }
84 
85 #endif // EQFABRIC_CLIENT_H
Defines export visibility macros for library EqualizerFabric.
The Equalizer client library.
Definition: eq/agl/types.h:23
A client represents a network node of the application in the cluster.
Definition: fabric/client.h:36