CORBA Namespace Reference


Typedefs

typedef sequence< boolean > BooleanSeq
typedef sequence< char > CharSeq
typedef sequence< double > DoubleSeq
typedef sequence< float > FloatSeq
typedef sequence< long double > LongDoubleSeq
typedef sequence< long long > LongLongSeq
typedef sequence< long > LongSeq
typedef sequence< octet > OctetSeq
typedef sequence< short > ShortSeq
typedef sequence< string > StringSeq
typedef sequence< unsigned
long long > 
ULongLongSeq
typedef sequence< unsigned
long > 
ULongSeq
typedef sequence< unsigned
short > 
UShortSeq
typedef sequence< wchar > WCharSeq
typedef sequence< wstring > WStringSeq

Functions

ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &os, const CORBA::Exception &e)
ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &os, const CORBA::Exception *e)
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
char * 
string_dup (const char *str)
char * string_alloc (CORBA::ULong len)
void string_free (char *str)
CORBA::WChar * wstring_dup (const WChar *const str)
CORBA::WChar * wstring_alloc (CORBA::ULong len)
void wstring_free (CORBA::WChar *const str)


Detailed Description

This file is used to generate the code in BooleanSeqC.*


Typedef Documentation

typedef sequence<boolean> CORBA::BooleanSeq

Definition at line 19 of file BooleanSeq.idl.

typedef sequence<char> CORBA::CharSeq

Definition at line 33 of file CharSeq.idl.

typedef sequence<double> CORBA::DoubleSeq

Definition at line 33 of file DoubleSeq.idl.

typedef sequence<float> CORBA::FloatSeq

Definition at line 34 of file FloatSeq.idl.

typedef sequence<long double> CORBA::LongDoubleSeq

Definition at line 31 of file LongDoubleSeq.idl.

typedef sequence<long long> CORBA::LongLongSeq

Definition at line 31 of file LongLongSeq.idl.

typedef sequence<long> CORBA::LongSeq

Definition at line 31 of file LongSeq.idl.

typedef sequence<octet> CORBA::OctetSeq

Definition at line 33 of file OctetSeq.idl.

typedef sequence<short> CORBA::ShortSeq

Definition at line 32 of file ShortSeq.idl.

typedef sequence<string> CORBA::StringSeq

Definition at line 30 of file StringSeq.idl.

typedef sequence<unsigned long long> CORBA::ULongLongSeq

Definition at line 19 of file ULongLongSeq.idl.

typedef sequence<unsigned long> CORBA::ULongSeq

Definition at line 23 of file ULongSeq.idl.

typedef sequence<unsigned short> CORBA::UShortSeq

Definition at line 30 of file UShortSeq.idl.

typedef sequence<wchar> CORBA::WCharSeq

Definition at line 31 of file WCharSeq.idl.

typedef sequence<wstring> CORBA::WStringSeq

Definition at line 31 of file WStringSeq.idl.


Function Documentation

ACE_OSTREAM_TYPE& CORBA::operator<< ( ACE_OSTREAM_TYPE &  os,
const CORBA::Exception &  e 
)

Definition at line 115 of file Exception.cpp.

00117   {
00118     os << e._name () << " (" << e._rep_id () << ')';
00119 
00120     return os;
00121   }

ACE_OSTREAM_TYPE& CORBA::operator<< ( ACE_OSTREAM_TYPE &  os,
const CORBA::Exception *  e 
)

Definition at line 123 of file Exception.cpp.

00125   {
00126     os << e->_name () << " (" << e->_rep_id () << ')';
00127 
00128     return os;
00129   }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL char* CORBA::string_dup ( const char *  str  ) 

Definition at line 13 of file String_Alloc.cpp.

References string_alloc().

Referenced by TAO_DDS_DCPSInfo_i::dump_to_string(), OpenDDS::SafetyProfile::StringTraits< CORBA::Char >::dup(), OpenDDS::DCPS::ContentFilteredTopicImpl::get_filter_expression(), OpenDDS::DCPS::TopicDescriptionImpl::get_name(), OpenDDS::DCPS::QueryConditionImpl::get_query_expression(), OpenDDS::DCPS::MultiTopicImpl::get_subscription_expression(), OpenDDS::DCPS::TypeSupportImpl::get_type_name(), OpenDDS::DCPS::TopicDescriptionImpl::get_type_name(), and QOS_PubSub_T< XML_QOS_TYPE, DDS_QOS_TYPE >::read_qos().

00014 {
00015   if (!str)
00016     {
00017       errno = EINVAL;
00018       return 0;
00019     }
00020 
00021   size_t const len = ACE_OS::strlen (str);
00022 
00023   // This allocates an extra byte for the '\0';
00024   char * copy = CORBA::string_alloc (static_cast<CORBA::ULong> (len));
00025 
00026   if (copy != 0)
00027     {
00028       // The memcpy() assumes that the destination is a valid buffer.
00029       ACE_OS::memcpy (copy, str, len + 1);
00030     }
00031 
00032   return copy;
00033 }

char* CORBA::string_alloc ( CORBA::ULong  len  ) 

Definition at line 36 of file String_Alloc.cpp.

References ACE_ALLOCATOR_NEW.

Referenced by OpenDDS::SafetyProfile::StringTraits< CORBA::Char >::alloc(), OpenDDS::Federator::InfoRepoMulticastResponder::init(), and string_dup().

00037 {
00038   // Allocate 1 + strlen to accomodate the null terminating character.
00039   char *s = 0;
00040   ACE_ALLOCATOR_NEW (s,
00041                      char[size_t (len + 1)],
00042                      0);
00043 
00044   s[0]= '\0';
00045 
00046   return s;
00047 }

void CORBA::string_free ( char *  str  ) 

Definition at line 50 of file String_Alloc.cpp.

Referenced by OpenDDS::SafetyProfile::StringTraits< CORBA::Char >::free().

00051 {
00052   ACE_Allocator::instance ()->free (str);
00053 }

CORBA::WChar* CORBA::wstring_dup ( const WChar *const   str  ) 

Definition at line 58 of file String_Alloc.cpp.

References wstring_alloc().

00059 {
00060   if (!str)
00061     {
00062       errno = EINVAL;
00063       return 0;
00064     }
00065 
00066   CORBA::WChar* retval =
00067     CORBA::wstring_alloc (static_cast <CORBA::ULong> (ACE_OS::strlen (str)));
00068 
00069   // The wscpy() below assumes that the destination is a valid buffer.
00070   if (retval == 0)
00071     {
00072       return 0;
00073     }
00074 
00075   return ACE_OS::wscpy (retval, str);
00076 }

CORBA::WChar* CORBA::wstring_alloc ( CORBA::ULong  len  ) 

Definition at line 79 of file String_Alloc.cpp.

References ACE_ALLOCATOR_NEW.

Referenced by wstring_dup().

00080 {
00081   CORBA::WChar *s = 0;
00082   ACE_ALLOCATOR_NEW (s,
00083                      CORBA::WChar [(size_t) (len + 1)],
00084                      0);
00085 
00086   return s;
00087 }

void CORBA::wstring_free ( CORBA::WChar *const   str  ) 

Definition at line 90 of file String_Alloc.cpp.

00091 {
00092   ACE_Allocator::instance ()->free(str);
00093 }


Generated on Fri Feb 12 20:06:06 2016 for OpenDDS by  doxygen 1.4.7