#include <RT_Policy_i.h>
Inheritance diagram for TAO_SharedMemory_Protocol_Properties:
Stores Shared Memory Protocol configuration properties.
Definition at line 550 of file RT_Policy_i.h.
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.
00835 : send_buffer_size_ (send_buffer_size), 00836 recv_buffer_size_ (recv_buffer_size), 00837 keep_alive_ (keep_alive), 00838 dont_route_ (dont_route), 00839 no_delay_ (no_delay), 00840 preallocate_buffer_size_ (preallocate_buffer_size), 00841 mmap_filename_ (mmap_filename), 00842 mmap_lockname_ (mmap_lockname) 00843 { 00844 }
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.
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 | ) |
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 }
Definition at line 634 of file RT_Policy_i.h.
Referenced by _tao_decode(), _tao_encode(), and mmap_filename().