Collage  1.6.0
High-performance C++ library for developing object-oriented distributed applications.
objectOCommand.h
1 
2 /* Copyright (c) 2012, Daniel Nachbaur <danielnachbaur@gmail.com>
3  * 2013-2014, Stefan.Eilemann@epfl.ch
4  *
5  * This file is part of Collage <https://github.com/Eyescale/Collage>
6  *
7  * This library is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Lesser General Public License version 2.1 as published
9  * by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef CO_OBJECTOCOMMAND_H
22 #define CO_OBJECTOCOMMAND_H
23 
24 #include <co/oCommand.h> // base class
25 
26 namespace co
27 {
28 namespace detail { class ObjectOCommand; }
29 
35 class ObjectOCommand : public OCommand
36 {
37 public:
47  CO_API ObjectOCommand( const Connections& receivers, const uint32_t cmd,
48  const uint32_t type, const uint128_t& id,
49  const uint32_t instanceID );
50 
61  CO_API ObjectOCommand( Dispatcher* const dispatcher, LocalNodePtr localNode,
62  const uint32_t cmd, const uint32_t type,
63  const uint128_t& id, const uint32_t instanceID );
64 
66  CO_API ObjectOCommand( const ObjectOCommand& rhs );
67 
69  CO_API virtual ~ObjectOCommand();
70 
71 private:
72  ObjectOCommand();
73  ObjectOCommand& operator = ( const ObjectOCommand& );
74  detail::ObjectOCommand* const _impl;
75 
76  void _init( const uint128_t& id, const uint32_t instanceID );
77 };
78 }
79 
80 #endif //CO_OBJECTOCOMMAND_H
std::vector< ConnectionPtr > Connections
A vector of ConnectionPtr&#39;s.
Definition: types.h:125
A class for sending commands and data to local & external objects.
lunchbox::RefPtr< LocalNode > LocalNodePtr
A reference pointer for LocalNode pointers.
Definition: types.h:90
Object-oriented network library.
Definition: barrier.h:27
A class for sending commands with data to local and external nodes.
Definition: oCommand.h:40
A class providing command dispatch functionality to networked objects.
Definition: dispatcher.h:38