LTP GCOV extension - code coverage report
Current view: directory - src/cpp/prod/protocol/giop - request_header_12.cpp
Test: YAORB-0.2.info
Date: 2006-02-27 Instrumented lines: 20
Code covered: 85.0 % Executed lines: 17

       1                 : //==============================================================================
       2                 : // File <$/src/cpp/prod/protocol/giop/request_header_12.cpp>
       3                 : // This file is part of YaOrb : Yet Another Object Request Broker,
       4                 : // Copyright (c) 2000-2003, Marc Alff.
       5                 : //
       6                 : // This program is free software; you can redistribute it and/or
       7                 : // modify it under the terms of the GNU General Public License
       8                 : // as published by the Free Software Foundation; either version 2
       9                 : // of the License, or (at your option) any later version.
      10                 : //
      11                 : // This program is distributed in the hope that it will be useful,
      12                 : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      13                 : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14                 : // GNU General Public License for more details.
      15                 : //
      16                 : // You should have received a copy of the GNU General Public License
      17                 : // along with this program; if not, write to the Free Software
      18                 : // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
      19                 : //
      20                 : //==============================================================================
      21                 : 
      22                 : #include <yaorb/CORBA.h>
      23                 : #include <yaorb/YAORB.h>
      24                 : 
      25                 : #include "src/cpp/prod/tool/DEVELOPMENT.h"
      26                 : #include "src/cpp/prod/protocol/cdr/msg.h"
      27                 : #include "src/cpp/prod/protocol/giop/request_header_12.h"
      28                 : 
      29               6 : GIOP12RequestHeader::GIOP12RequestHeader()
      30                 : :  _request_id(0),
      31                 :    _response_flags(0),
      32                 :    _target(),
      33                 :    _operation(),
      34               6 :    _service_context()
      35               0 : {}
      36                 : 
      37                 : GIOP12RequestHeader::GIOP12RequestHeader(
      38                 :    CORBA::ULong request_id,
      39                 :    CORBA::Octet response_flags,
      40                 :    const TargetAddress& target,
      41               4 :    const char* operation)
      42                 : :  _request_id(request_id),
      43                 :    _response_flags(response_flags),
      44                 :    _target(target),
      45                 :    _operation(operation),
      46               4 :    _service_context()
      47               0 : {}
      48                 : 
      49              10 : GIOP12RequestHeader::~GIOP12RequestHeader()
      50               0 : {}
      51                 : 
      52              10 : void GIOP12RequestHeader::cdr(YAORB::CDR* cdrs)
      53                 : {
      54              10 :    cdrs->cdr_ULong(& _request_id) ;
      55              10 :    cdrs->cdr_Octet(& _response_flags) ;
      56              10 :    cdrs->cdr_Octet(& _reserved[0]) ;
      57              10 :    cdrs->cdr_Octet(& _reserved[1]) ;
      58              10 :    cdrs->cdr_Octet(& _reserved[2]) ;
      59              10 :    _target.cdr(cdrs) ;
      60               9 :    cdrs->cdr_String_var( & _operation) ;
      61                 :    _service_context.cdr(cdrs) ;
      62                 : }
      63                 : 
      64               5 : CORBA::ULong GIOP12RequestHeader::GetRequestId(void) const
      65                 : {
      66                 :    return _request_id ;
      67                 : }
      68                 : 
      69               5 : CORBA::Octet GIOP12RequestHeader::GetResponseFlags(void) const
      70                 : {
      71                 :    return _response_flags ;
      72                 : }
      73                 : 
      74               5 : const TargetAddress & GIOP12RequestHeader::GetTarget(void) const
      75                 : {
      76                 :    return _target ;
      77                 : }
      78                 : 
      79               5 : const CORBA::String_var & GIOP12RequestHeader::GetOperation(void) const
      80                 : {
      81                 :    return _operation ;
      82                 : }
      83                 : 

Generated by: LTP GCOV extension version 1.4