TAO_SharedMemory_Protocol_Properties Class Reference

RTCORBA::SharedMemoryProtocolProperties implementation. More...

#include <RT_Policy_i.h>

Inheritance diagram for TAO_SharedMemory_Protocol_Properties:

Inheritance graph
[legend]
Collaboration diagram for TAO_SharedMemory_Protocol_Properties:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_SharedMemory_Protocol_Properties (CORBA::Long send_buffer_size, CORBA::Long recv_buffer_size, CORBA::Boolean keep_alive, CORBA::Boolean dont_route, CORBA::Boolean no_delay, CORBA::Long preallocate_buffer_size, const char *mmap_filename, const char *mmap_lockname)
 Constructor.
CORBA::Long send_buffer_size (void)
void send_buffer_size (CORBA::Long send_buffer_size)
CORBA::Long recv_buffer_size (void)
void recv_buffer_size (CORBA::Long recv_buffer_size)
CORBA::Boolean keep_alive (void)
void keep_alive (CORBA::Boolean keep_alive)
CORBA::Boolean dont_route (void)
void dont_route (CORBA::Boolean dont_route)
CORBA::Boolean no_delay (void)
void no_delay (CORBA::Boolean no_delay)
CORBA::Boolean enable_network_priority (void)
CORBA::Long preallocate_buffer_size (void)
void preallocate_buffer_size (CORBA::Long preallocate_buffer_size)
char * mmap_filename (void)
void mmap_filename (const char *mmap_filename)
char * mmap_lockname (void)
void mmap_lockname (const char *mmap_lockname)
CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr)
CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr)

Protected Member Functions

virtual ~TAO_SharedMemory_Protocol_Properties (void)

Private Attributes

CORBA::Long send_buffer_size_
CORBA::Long recv_buffer_size_
CORBA::Boolean keep_alive_
CORBA::Boolean dont_route_
CORBA::Boolean no_delay_
CORBA::Long preallocate_buffer_size_
ACE_CString mmap_filename_
ACE_CString mmap_lockname_

Detailed Description

RTCORBA::SharedMemoryProtocolProperties implementation.

Stores Shared Memory Protocol configuration properties.

Definition at line 550 of file RT_Policy_i.h.


Constructor & Destructor Documentation

TAO_SharedMemory_Protocol_Properties::TAO_SharedMemory_Protocol_Properties ( CORBA::Long  send_buffer_size,
CORBA::Long  recv_buffer_size,
CORBA::Boolean  keep_alive,
CORBA::Boolean  dont_route,
CORBA::Boolean  no_delay,
CORBA::Long  preallocate_buffer_size,
const char *  mmap_filename,
const char *  mmap_lockname 
)

Constructor.

Definition at line 827 of file RT_Policy_i.cpp.

TAO_SharedMemory_Protocol_Properties::~TAO_SharedMemory_Protocol_Properties ( void   )  [protected, virtual]

Protected destructor to enforce proper memory management of this reference counted object.

Definition at line 846 of file RT_Policy_i.cpp.

00847 {
00848 }


Member Function Documentation

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::_tao_decode ( TAO_InputCDR in_cdr  ) 

This method reads an instance of SharedMemoryProperties from a CDR encapsulation. This Protocol Property in TAO specific, so there is no order of encapsulation specified in the RT CORBA Spec. The current implementation expect the field according to the order of declaration.

Definition at line 968 of file RT_Policy_i.cpp.

References mmap_filename_, and ACE_InputCDR::read_boolean().

00969 {
00970   return ((in_cdr >> this->send_buffer_size_)
00971           &&
00972           (in_cdr >> this->recv_buffer_size_)
00973           &&
00974           (in_cdr.read_boolean (this->keep_alive_))
00975           &&
00976           (in_cdr.read_boolean (this->dont_route_))
00977           &&
00978           (in_cdr.read_boolean (this->no_delay_))
00979           &&
00980           (in_cdr >> this->preallocate_buffer_size_)
00981           &&
00982           (in_cdr >> this->mmap_filename_)
00983           &&
00984           (in_cdr >> this->mmap_lockname_));
00985 }

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::_tao_encode ( TAO_OutputCDR out_cdr  ) 

This method writes the CDR encapsulation of an instance of SharedMemoryProperties. This Protocol Property in TAO specific, so there is no order of encapsulation specified in the RT CORBA Spec. The current implementation encodes the field according to the order of declaration.

Definition at line 948 of file RT_Policy_i.cpp.

References mmap_filename_, and ACE_OutputCDR::write_boolean().

00949 {
00950   return ((out_cdr << this->send_buffer_size_)
00951           &&
00952           (out_cdr << this->recv_buffer_size_)
00953           &&
00954           (out_cdr.write_boolean (this->keep_alive_))
00955           &&
00956           (out_cdr.write_boolean (this->dont_route_))
00957           &&
00958           (out_cdr.write_boolean (this->no_delay_))
00959           &&
00960           (out_cdr << this->preallocate_buffer_size_)
00961           &&
00962           (out_cdr << this->mmap_filename_)
00963           &&
00964           (out_cdr << this->mmap_lockname_));
00965 }

void TAO_SharedMemory_Protocol_Properties::dont_route ( CORBA::Boolean  dont_route  ) 

Definition at line 894 of file RT_Policy_i.cpp.

References dont_route_.

00895 {
00896   this->dont_route_ = dont_route;
00897 }

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::dont_route ( void   ) 

Definition at line 888 of file RT_Policy_i.cpp.

References dont_route_.

00889 {
00890   return this->dont_route_;
00891 }

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::enable_network_priority ( void   ) 

void TAO_SharedMemory_Protocol_Properties::keep_alive ( CORBA::Boolean  keep_alive  ) 

Definition at line 882 of file RT_Policy_i.cpp.

References keep_alive_.

00883 {
00884   this->keep_alive_ = keep_alive;
00885 }

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::keep_alive ( void   ) 

Definition at line 876 of file RT_Policy_i.cpp.

References keep_alive_.

00877 {
00878   return this->keep_alive_;
00879 }

void TAO_SharedMemory_Protocol_Properties::mmap_filename ( const char *  mmap_filename  ) 

Definition at line 930 of file RT_Policy_i.cpp.

References mmap_filename_, and ACE_String_Base< CHAR >::set().

00931 {
00932   this->mmap_filename_.set (mmap_filename);
00933 }

char * TAO_SharedMemory_Protocol_Properties::mmap_filename ( void   ) 

Definition at line 924 of file RT_Policy_i.cpp.

References mmap_filename_, and ACE_String_Base< CHAR >::rep().

00925 {
00926   return this->mmap_filename_.rep ();
00927 }

void TAO_SharedMemory_Protocol_Properties::mmap_lockname ( const char *  mmap_lockname  ) 

Definition at line 942 of file RT_Policy_i.cpp.

References mmap_lockname_, and ACE_String_Base< CHAR >::set().

00943 {
00944   this->mmap_lockname_.set (mmap_lockname);
00945 }

char * TAO_SharedMemory_Protocol_Properties::mmap_lockname ( void   ) 

Definition at line 936 of file RT_Policy_i.cpp.

References mmap_lockname_, and ACE_String_Base< CHAR >::rep().

00937 {
00938   return this->mmap_lockname_.rep ();
00939 }

void TAO_SharedMemory_Protocol_Properties::no_delay ( CORBA::Boolean  no_delay  ) 

Definition at line 906 of file RT_Policy_i.cpp.

References no_delay_.

00907 {
00908   this->no_delay_ = no_delay;
00909 }

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::no_delay ( void   ) 

Definition at line 900 of file RT_Policy_i.cpp.

References no_delay_.

00901 {
00902   return this->no_delay_;
00903 }

void TAO_SharedMemory_Protocol_Properties::preallocate_buffer_size ( CORBA::Long  preallocate_buffer_size  ) 

Definition at line 918 of file RT_Policy_i.cpp.

References preallocate_buffer_size_.

00919 {
00920   this->preallocate_buffer_size_ = preallocate_buffer_size;
00921 }

CORBA::Long TAO_SharedMemory_Protocol_Properties::preallocate_buffer_size ( void   ) 

Definition at line 912 of file RT_Policy_i.cpp.

References preallocate_buffer_size_.

00913 {
00914   return this->preallocate_buffer_size_;
00915 }

void TAO_SharedMemory_Protocol_Properties::recv_buffer_size ( CORBA::Long  recv_buffer_size  ) 

Definition at line 870 of file RT_Policy_i.cpp.

References recv_buffer_size_.

00871 {
00872   this->recv_buffer_size_ = recv_buffer_size;
00873 }

CORBA::Long TAO_SharedMemory_Protocol_Properties::recv_buffer_size ( void   ) 

Definition at line 864 of file RT_Policy_i.cpp.

References recv_buffer_size_.

00865 {
00866   return this->recv_buffer_size_;
00867 }

void TAO_SharedMemory_Protocol_Properties::send_buffer_size ( CORBA::Long  send_buffer_size  ) 

Definition at line 858 of file RT_Policy_i.cpp.

References send_buffer_size_.

00859 {
00860   this->send_buffer_size_ = send_buffer_size;
00861 }

CORBA::Long TAO_SharedMemory_Protocol_Properties::send_buffer_size ( void   ) 

Definition at line 852 of file RT_Policy_i.cpp.

References send_buffer_size_.

00853 {
00854   return this->send_buffer_size_;
00855 }


Member Data Documentation

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::dont_route_ [private]

Definition at line 631 of file RT_Policy_i.h.

Referenced by dont_route().

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::keep_alive_ [private]

Definition at line 630 of file RT_Policy_i.h.

Referenced by keep_alive().

ACE_CString TAO_SharedMemory_Protocol_Properties::mmap_filename_ [private]

Definition at line 634 of file RT_Policy_i.h.

Referenced by _tao_decode(), _tao_encode(), and mmap_filename().

ACE_CString TAO_SharedMemory_Protocol_Properties::mmap_lockname_ [private]

Definition at line 635 of file RT_Policy_i.h.

Referenced by mmap_lockname().

CORBA::Boolean TAO_SharedMemory_Protocol_Properties::no_delay_ [private]

Definition at line 632 of file RT_Policy_i.h.

Referenced by no_delay().

CORBA::Long TAO_SharedMemory_Protocol_Properties::preallocate_buffer_size_ [private]

Definition at line 633 of file RT_Policy_i.h.

Referenced by preallocate_buffer_size().

CORBA::Long TAO_SharedMemory_Protocol_Properties::recv_buffer_size_ [private]

Definition at line 629 of file RT_Policy_i.h.

Referenced by recv_buffer_size().

CORBA::Long TAO_SharedMemory_Protocol_Properties::send_buffer_size_ [private]

Definition at line 628 of file RT_Policy_i.h.

Referenced by send_buffer_size().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:43:02 2010 for TAO_RTCORBA by  doxygen 1.4.7