Line data Source code
1 :
2 : /* Copyright (c) 2012, Daniel Nachbaur <danielnachbaur@gmail.com>
3 : *
4 : * This file is part of Collage <https://github.com/Eyescale/Collage>
5 : *
6 : * This library is free software; you can redistribute it and/or modify it under
7 : * the terms of the GNU Lesser General Public License version 2.1 as published
8 : * by the Free Software Foundation.
9 : *
10 : * This library is distributed in the hope that it will be useful, but WITHOUT
11 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 : * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 : * details.
14 : *
15 : * You should have received a copy of the GNU Lesser General Public License
16 : * along with this library; if not, write to the Free Software Foundation, Inc.,
17 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 : */
19 :
20 : #include "objectOCommand.h"
21 :
22 :
23 : namespace co
24 : {
25 :
26 : namespace detail
27 : {
28 :
29 : class ObjectOCommand
30 : {
31 : public:
32 564 : ObjectOCommand() {}
33 : };
34 :
35 : }
36 :
37 564 : ObjectOCommand::ObjectOCommand( const Connections& receivers,
38 : const uint32_t cmd, const uint32_t type,
39 : const uint128_t& id, const uint32_t instanceID )
40 : : OCommand( receivers, cmd, type )
41 564 : , _impl( new detail::ObjectOCommand )
42 : {
43 564 : _init( id, instanceID );
44 558 : }
45 :
46 0 : ObjectOCommand::ObjectOCommand( Dispatcher* const dispatcher,
47 : LocalNodePtr localNode, const uint32_t cmd,
48 : const uint32_t type, const uint128_t& id,
49 : const uint32_t instanceID )
50 : : OCommand( dispatcher, localNode, cmd, type )
51 0 : , _impl( new detail::ObjectOCommand )
52 : {
53 0 : _init( id, instanceID );
54 0 : }
55 :
56 0 : ObjectOCommand::ObjectOCommand( const ObjectOCommand& rhs )
57 : : OCommand( rhs )
58 0 : , _impl( new detail::ObjectOCommand( *rhs._impl ))
59 : {
60 0 : }
61 :
62 564 : void ObjectOCommand::_init( const uint128_t& id, const uint32_t instanceID )
63 : {
64 564 : *this << id << instanceID;
65 558 : }
66 :
67 1121 : ObjectOCommand::~ObjectOCommand()
68 : {
69 556 : delete _impl;
70 565 : }
71 :
72 66 : }
|