Collage  1.7.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
29 {
30 class ObjectOCommand;
31 }
32 
38 class ObjectOCommand : public OCommand
39 {
40 public:
50  CO_API ObjectOCommand(const Connections& receivers, const uint32_t cmd,
51  const uint32_t type, const uint128_t& id,
52  const uint32_t instanceID);
53 
64  CO_API ObjectOCommand(Dispatcher* const dispatcher, LocalNodePtr localNode,
65  const uint32_t cmd, const uint32_t type,
66  const uint128_t& id, const uint32_t instanceID);
67 
69  CO_API ObjectOCommand(const ObjectOCommand& rhs);
70 
72  CO_API virtual ~ObjectOCommand();
73 
74 private:
75  ObjectOCommand();
76  ObjectOCommand& operator=(const ObjectOCommand&);
77  detail::ObjectOCommand* const _impl;
78 
79  void _init(const uint128_t& id, const uint32_t instanceID);
80 };
81 }
82 
83 #endif // CO_OBJECTOCOMMAND_H
A class for sending commands and data to local & external objects.
lunchbox::RefPtr< LocalNode > LocalNodePtr
A reference pointer for LocalNode pointers.
Definition: types.h:89
Object-oriented network library.
Definition: barrier.h:27
A class for sending commands with data to local and external nodes.
Definition: oCommand.h:41
std::vector< ConnectionPtr > Connections
A vector of ConnectionPtr&#39;s.
Definition: types.h:124
A class providing command dispatch functionality to networked objects.
Definition: dispatcher.h:41