LCOV - code coverage report
Current view: top level - co - objectOCommand.cpp (source / functions) Hit Total Coverage
Test: Collage Lines: 13 21 61.9 %
Date: 2018-01-09 16:37:03 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             : namespace co
      23             : {
      24             : namespace detail
      25             : {
      26             : class ObjectOCommand
      27             : {
      28             : public:
      29         559 :     ObjectOCommand() {}
      30             : };
      31             : }
      32             : 
      33         559 : ObjectOCommand::ObjectOCommand(const Connections& receivers, const uint32_t cmd,
      34             :                                const uint32_t type, const uint128_t& id,
      35         559 :                                const uint32_t instanceID)
      36             :     : OCommand(receivers, cmd, type)
      37         559 :     , _impl(new detail::ObjectOCommand)
      38             : {
      39         559 :     _init(id, instanceID);
      40         558 : }
      41             : 
      42           0 : ObjectOCommand::ObjectOCommand(Dispatcher* const dispatcher,
      43             :                                LocalNodePtr localNode, const uint32_t cmd,
      44             :                                const uint32_t type, const uint128_t& id,
      45           0 :                                const uint32_t instanceID)
      46             :     : OCommand(dispatcher, localNode, cmd, type)
      47           0 :     , _impl(new detail::ObjectOCommand)
      48             : {
      49           0 :     _init(id, instanceID);
      50           0 : }
      51             : 
      52           0 : ObjectOCommand::ObjectOCommand(const ObjectOCommand& rhs)
      53             :     : OCommand(rhs)
      54           0 :     , _impl(new detail::ObjectOCommand(*rhs._impl))
      55             : {
      56           0 : }
      57             : 
      58         559 : void ObjectOCommand::_init(const uint128_t& id, const uint32_t instanceID)
      59             : {
      60         559 :     *this << id << instanceID;
      61         558 : }
      62             : 
      63        1112 : ObjectOCommand::~ObjectOCommand()
      64             : {
      65         556 :     delete _impl;
      66         559 : }
      67          63 : }

Generated by: LCOV version 1.11