LCOV - code coverage report
Current view: top level - co - objectOCommand.cpp (source / functions) Hit Total Coverage
Test: Collage Lines: 13 21 61.9 %
Date: 2016-12-14 01:26:48 Functions: 6 9 66.7 %

          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         561 :     ObjectOCommand() {}
      33             : };
      34             : 
      35             : }
      36             : 
      37         565 : ObjectOCommand::ObjectOCommand( const Connections& receivers,
      38             :                                 const uint32_t cmd, const uint32_t type,
      39         565 :                                 const uint128_t& id, const uint32_t instanceID )
      40             :     : OCommand( receivers, cmd, type )
      41         565 :     , _impl( new detail::ObjectOCommand )
      42             : {
      43         561 :     _init( id, instanceID );
      44         562 : }
      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           0 :                                 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         561 : void ObjectOCommand::_init( const uint128_t& id, const uint32_t instanceID )
      63             : {
      64         561 :     *this << id << instanceID;
      65         562 : }
      66             : 
      67        1125 : ObjectOCommand::~ObjectOCommand()
      68             : {
      69         561 :     delete _impl;
      70         565 : }
      71             : 
      72          66 : }

Generated by: LCOV version 1.11