RTCORBAC.cpp File Reference

#include "tao/RTCORBA/RTCORBA.h"
#include "tao/CDR.h"
#include "tao/Basic_Arguments.h"
#include "tao/Special_Basic_Arguments.h"
#include "tao/UB_String_Arguments.h"
#include "ace/OS_NS_string.h"

Include dependency graph for RTCORBAC.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  TAO

Defines

#define _RTCORBA_THREADPOOLLANES_CS_
#define _RTCORBA_PROTOCOLLIST_CS_
#define _RTCORBA_PRIORITYBANDS_CS_

Functions

CORBA::Boolean operator<< (TAO_OutputCDR &strm, const RTCORBA::ThreadpoolLane &_tao_aggregate)
CORBA::Boolean operator>> (TAO_InputCDR &strm, RTCORBA::ThreadpoolLane &_tao_aggregate)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const RTCORBA::ThreadpoolLanes &_tao_sequence)
CORBA::Boolean operator>> (TAO_InputCDR &strm, RTCORBA::ThreadpoolLanes &_tao_sequence)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, RTCORBA::PriorityModel _tao_enumerator)
CORBA::Boolean operator>> (TAO_InputCDR &strm, RTCORBA::PriorityModel &_tao_enumerator)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const RTCORBA::PriorityBand &_tao_aggregate)
CORBA::Boolean operator>> (TAO_InputCDR &strm, RTCORBA::PriorityBand &_tao_aggregate)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const RTCORBA::PriorityBands &_tao_sequence)
CORBA::Boolean operator>> (TAO_InputCDR &strm, RTCORBA::PriorityBands &_tao_sequence)


Define Documentation

#define _RTCORBA_PRIORITYBANDS_CS_
 

Definition at line 1811 of file RTCORBAC.cpp.

#define _RTCORBA_PROTOCOLLIST_CS_
 

Definition at line 548 of file RTCORBAC.cpp.

#define _RTCORBA_THREADPOOLLANES_CS_
 

Definition at line 87 of file RTCORBAC.cpp.


Function Documentation

CORBA::Boolean operator<< TAO_OutputCDR strm,
const RTCORBA::PriorityBands _tao_sequence
 

Definition at line 2673 of file RTCORBAC.cpp.

References TAO::unbounded_value_sequence< PriorityBand >::length().

02677 {
02678   const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
02679 
02680   if (strm << _tao_seq_len)
02681     {
02682       // Encode all elements.
02683       CORBA::Boolean _tao_marshal_flag = true;
02684 
02685       for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
02686         {
02687           _tao_marshal_flag = (strm << _tao_sequence[i]);
02688         }
02689 
02690       return _tao_marshal_flag;
02691     }
02692 
02693   return false;
02694 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
const RTCORBA::PriorityBand _tao_aggregate
 

Definition at line 2647 of file RTCORBAC.cpp.

02651 {
02652   return
02653     (strm << _tao_aggregate.low) &&
02654     (strm << _tao_aggregate.high);
02655 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
RTCORBA::PriorityModel  _tao_enumerator
 

Definition at line 2626 of file RTCORBAC.cpp.

02627 {
02628   return strm << static_cast<CORBA::ULong> (_tao_enumerator);
02629 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
const RTCORBA::ThreadpoolLanes _tao_sequence
 

Definition at line 2605 of file RTCORBAC.cpp.

02609 {
02610   return TAO::marshal_sequence(strm, _tao_sequence);
02611 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
const RTCORBA::ThreadpoolLane _tao_aggregate
 

Definition at line 2577 of file RTCORBAC.cpp.

02581 {
02582   return
02583     (strm << _tao_aggregate.lane_priority) &&
02584     (strm << _tao_aggregate.static_threads) &&
02585     (strm << _tao_aggregate.dynamic_threads);
02586 }

CORBA::Boolean operator>> TAO_InputCDR strm,
RTCORBA::PriorityBands _tao_sequence
 

Definition at line 2696 of file RTCORBAC.cpp.

References ACE_InputCDR::length(), and TAO::unbounded_value_sequence< PriorityBand >::length().

02700 {
02701   CORBA::ULong _tao_seq_len;
02702 
02703   if (strm >> _tao_seq_len)
02704     {
02705       // Add a check to the length of the sequence
02706       // to make sure it does not exceed the length
02707       // of the stream. (See bug 58.)
02708       if (_tao_seq_len > strm.length ())
02709         {
02710           return false;
02711         }
02712 
02713       // Set the length of the sequence.
02714       _tao_sequence.length (_tao_seq_len);
02715 
02716       // If length is 0 we return true.
02717       if (0 >= _tao_seq_len)
02718         {
02719           return true;
02720         }
02721 
02722       // Retrieve all the elements.
02723       CORBA::Boolean _tao_marshal_flag = true;
02724 
02725       for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
02726         {
02727           _tao_marshal_flag = (strm >> _tao_sequence[i]);
02728         }
02729 
02730       return _tao_marshal_flag;
02731 
02732     }
02733 
02734   return false;
02735 }

CORBA::Boolean operator>> TAO_InputCDR strm,
RTCORBA::PriorityBand _tao_aggregate
 

Definition at line 2657 of file RTCORBAC.cpp.

02661 {
02662   return
02663     (strm >> _tao_aggregate.low) &&
02664     (strm >> _tao_aggregate.high);
02665 }

CORBA::Boolean operator>> TAO_InputCDR strm,
RTCORBA::PriorityModel _tao_enumerator
 

Definition at line 2631 of file RTCORBAC.cpp.

02632 {
02633   CORBA::ULong _tao_temp = 0;
02634   CORBA::Boolean const _tao_success = strm >> _tao_temp;
02635 
02636   if (_tao_success)
02637     {
02638       _tao_enumerator = static_cast<RTCORBA::PriorityModel> (_tao_temp);
02639     }
02640 
02641   return _tao_success;
02642 }

CORBA::Boolean operator>> TAO_InputCDR strm,
RTCORBA::ThreadpoolLanes _tao_sequence
 

Definition at line 2613 of file RTCORBAC.cpp.

02617 {
02618   return TAO::demarshal_sequence(strm, _tao_sequence);
02619 }

CORBA::Boolean operator>> TAO_InputCDR strm,
RTCORBA::ThreadpoolLane _tao_aggregate
 

Definition at line 2588 of file RTCORBAC.cpp.

02592 {
02593   return
02594     (strm >> _tao_aggregate.lane_priority) &&
02595     (strm >> _tao_aggregate.static_threads) &&
02596     (strm >> _tao_aggregate.dynamic_threads);
02597 }


Generated on Thu Nov 9 12:58:56 2006 for TAO_RTCORBA by doxygen 1.3.6