Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

CDR_Stream.i File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::Char x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::Short x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::UShort x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::Long x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::ULong x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::LongLong x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::ULongLong x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::LongDouble x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::Float x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::Double x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, const ACE_CDR::Char *x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, const ACE_CDR::WChar *x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_boolean x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_char x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_wchar x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_octet x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_string x)
ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_wstring x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Char &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Short &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::UShort &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Long &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::ULong &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::LongLong &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::ULongLong &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::LongDouble &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Float &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Double &x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Char *&x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::WChar *&x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_InputCDR::to_boolean x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_InputCDR::to_char x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_InputCDR::to_wchar x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_InputCDR::to_octet x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_InputCDR::to_string x)
ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_InputCDR::to_wstring x)


Function Documentation

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_OutputCDR::from_wstring    x
 

Definition at line 1133 of file CDR_Stream.i.

References ACE_OutputCDR::from_wstring::bound_, ACE_OutputCDR::good_bit, ACE_CDR::ULong, ACE_OutputCDR::from_wstring::val_, ACE_OutputCDR::write_wstring, and ACE_OS::wslen.

01134 {
01135   ACE_CDR::ULong len = 0;;
01136   if (x.val_ != 0)
01137     len = ACE_OS::wslen (x.val_);
01138   os.write_wstring (len, x.val_);
01139   return os.good_bit () && (len <= x.bound_);
01140 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_OutputCDR::from_string    x
 

Definition at line 1123 of file CDR_Stream.i.

References ACE_OutputCDR::from_string::bound_, ACE_OutputCDR::good_bit, ACE_OS_String::strlen, ACE_CDR::ULong, ACE_OutputCDR::from_string::val_, and ACE_OutputCDR::write_string.

01124 {
01125   ACE_CDR::ULong len = 0;
01126   if (x.val_ != 0)
01127     len = ACE_static_cast (ACE_CDR::ULong, ACE_OS_String::strlen (x.val_));
01128   os.write_string (len, x.val_);
01129   return os.good_bit () && (len <= x.bound_);
01130 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_OutputCDR::from_octet    x
 

Definition at line 1116 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_OutputCDR::from_octet::val_, and ACE_OutputCDR::write_octet.

01117 {
01118   os.write_octet (x.val_);
01119   return (ACE_CDR::Boolean) os.good_bit ();
01120 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_OutputCDR::from_wchar    x
 

Definition at line 1109 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_OutputCDR::from_wchar::val_, and ACE_OutputCDR::write_wchar.

01110 {
01111   os.write_wchar (x.val_);
01112   return (ACE_CDR::Boolean) os.good_bit ();
01113 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_OutputCDR::from_char    x
 

Definition at line 1102 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_OutputCDR::from_char::val_, and ACE_OutputCDR::write_char.

01103 {
01104   os.write_char (x.val_);
01105   return (ACE_CDR::Boolean) os.good_bit ();
01106 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_OutputCDR::from_boolean    x
 

Definition at line 1095 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_OutputCDR::from_boolean::val_, and ACE_OutputCDR::write_boolean.

01096 {
01097   os.write_boolean (x.val_);
01098   return (ACE_CDR::Boolean) os.good_bit ();
01099 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
const ACE_CDR::WChar   x
 

Definition at line 1087 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_CDR::WChar, and ACE_OutputCDR::write_wstring.

01088 {
01089   os.write_wstring (x);
01090   return (ACE_CDR::Boolean) os.good_bit ();
01091 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
const ACE_CDR::Char   x
 

Definition at line 1080 of file CDR_Stream.i.

References ACE_CDR::Char, ACE_OutputCDR::good_bit, and ACE_OutputCDR::write_string.

01081 {
01082   os.write_string (x);
01083   return (ACE_CDR::Boolean) os.good_bit ();
01084 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::Double    x
 

Definition at line 1073 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, and ACE_OutputCDR::write_double.

01074 {
01075   os.write_double (x);
01076   return (ACE_CDR::Boolean) os.good_bit ();
01077 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::Float    x
 

Definition at line 1066 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, and ACE_OutputCDR::write_float.

01067 {
01068   os.write_float (x);
01069   return (ACE_CDR::Boolean) os.good_bit ();
01070 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::LongDouble    x
 

Definition at line 1059 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, and ACE_OutputCDR::write_longdouble.

01060 {
01061   os.write_longdouble (x);
01062   return (ACE_CDR::Boolean) os.good_bit ();
01063 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::ULongLong    x
 

Definition at line 1052 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_CDR::ULongLong, and ACE_OutputCDR::write_ulonglong.

01053 {
01054   os.write_ulonglong (x);
01055   return (ACE_CDR::Boolean) os.good_bit ();
01056 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::LongLong    x
 

Definition at line 1045 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_CDR::LongLong, and ACE_OutputCDR::write_longlong.

01046 {
01047   os.write_longlong (x);
01048   return (ACE_CDR::Boolean) os.good_bit ();
01049 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::ULong    x
 

Definition at line 1038 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_CDR::ULong, and ACE_OutputCDR::write_ulong.

01039 {
01040   os.write_ulong (x);
01041   return (ACE_CDR::Boolean) os.good_bit ();
01042 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::Long    x
 

Definition at line 1031 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_CDR::Long, and ACE_OutputCDR::write_long.

01032 {
01033   os.write_long (x);
01034   return (ACE_CDR::Boolean) os.good_bit ();
01035 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::UShort    x
 

Definition at line 1024 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_CDR::UShort, and ACE_OutputCDR::write_ushort.

01025 {
01026   os.write_ushort (x);
01027   return (ACE_CDR::Boolean) os.good_bit ();
01028 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::Short    x
 

Definition at line 1017 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit, ACE_CDR::Short, and ACE_OutputCDR::write_short.

01018 {
01019   os.write_short (x);
01020   return (ACE_CDR::Boolean) os.good_bit ();
01021 }

ACE_INLINE ACE_CDR::Boolean operator<< ACE_OutputCDR   os,
ACE_CDR::Char    x
 

Definition at line 1010 of file CDR_Stream.i.

References ACE_CDR::Char, ACE_OutputCDR::good_bit, and ACE_OutputCDR::write_char.

01011 {
01012   os.write_char (x);
01013   return (ACE_CDR::Boolean) os.good_bit ();
01014 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_InputCDR::to_wstring    x
 

Definition at line 1267 of file CDR_Stream.i.

References ACE_InputCDR::to_wstring::bound_, ACE_InputCDR::good_bit, ACE_InputCDR::read_wstring, ACE_InputCDR::to_wstring::val_, ACE_CDR::WChar, and ACE_OS::wslen.

01268 {
01269   is.read_wstring (ACE_const_cast (ACE_CDR::WChar *&, x.val_));
01270   // check if the bounds are satisfied
01271   return (is.good_bit () &&
01272           (ACE_OS::wslen (x.val_) <= x.bound_));
01273 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_InputCDR::to_string    x
 

Definition at line 1258 of file CDR_Stream.i.

References ACE_InputCDR::to_string::bound_, ACE_InputCDR::good_bit, ACE_InputCDR::read_string, ACE_OS_String::strlen, and ACE_InputCDR::to_string::val_.

01259 {
01260   is.read_string (ACE_const_cast (char *&, x.val_));
01261   // check if the bounds are satisfied
01262   return (is.good_bit () &&
01263           (ACE_OS::strlen (x.val_) <= x.bound_));
01264 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_InputCDR::to_octet    x
 

Definition at line 1251 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_octet, and ACE_InputCDR::to_octet::ref_.

01252 {
01253   is.read_octet (x.ref_);
01254   return is.good_bit ();
01255 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_InputCDR::to_wchar    x
 

Definition at line 1244 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_wchar, and ACE_InputCDR::to_wchar::ref_.

01245 {
01246   is.read_wchar (x.ref_);
01247   return is.good_bit ();
01248 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_InputCDR::to_char    x
 

Definition at line 1237 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_char, and ACE_InputCDR::to_char::ref_.

01238 {
01239   is.read_char (x.ref_);
01240   return is.good_bit ();
01241 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_InputCDR::to_boolean    x
 

Definition at line 1230 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_boolean, and ACE_InputCDR::to_boolean::ref_.

01231 {
01232   is.read_boolean (x.ref_);
01233   return is.good_bit ();
01234 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::WChar *&    x
 

Definition at line 1222 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_wstring, and ACE_CDR::WChar.

01223 {
01224   is.read_wstring (x);
01225   return is.good_bit ();
01226 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::Char *&    x
 

Definition at line 1215 of file CDR_Stream.i.

References ACE_CDR::Char, ACE_InputCDR::good_bit, and ACE_InputCDR::read_string.

01216 {
01217   is.read_string (x);
01218   return is.good_bit ();
01219 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::Double   x
 

Definition at line 1208 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, and ACE_InputCDR::read_double.

01209 {
01210   is.read_double (x);
01211   return is.good_bit ();
01212 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::Float   x
 

Definition at line 1201 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, and ACE_InputCDR::read_float.

01202 {
01203   is.read_float (x);
01204   return is.good_bit ();
01205 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::LongDouble   x
 

Definition at line 1194 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, and ACE_InputCDR::read_longdouble.

01195 {
01196   is.read_longdouble (x);
01197   return is.good_bit ();
01198 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::ULongLong   x
 

Definition at line 1187 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_ulonglong, and ACE_CDR::ULongLong.

01188 {
01189   is.read_ulonglong (x);
01190   return is.good_bit ();
01191 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::LongLong   x
 

Definition at line 1180 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_CDR::LongLong, and ACE_InputCDR::read_longlong.

01181 {
01182   is.read_longlong (x);
01183   return is.good_bit ();
01184 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::ULong   x
 

Definition at line 1173 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_ulong, and ACE_CDR::ULong.

01174 {
01175   is.read_ulong (x);
01176   return is.good_bit ();
01177 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::Long   x
 

Definition at line 1166 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_CDR::Long, and ACE_InputCDR::read_long.

01167 {
01168   is.read_long (x);
01169   return is.good_bit ();
01170 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::UShort   x
 

Definition at line 1159 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_ushort, and ACE_CDR::UShort.

01160 {
01161   is.read_ushort (x);
01162   return is.good_bit ();
01163 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::Short   x
 

Definition at line 1152 of file CDR_Stream.i.

References ACE_InputCDR::good_bit, ACE_InputCDR::read_short, and ACE_CDR::Short.

01153 {
01154   is.read_short (x);
01155   return is.good_bit ();
01156 }

ACE_INLINE ACE_CDR::Boolean operator>> ACE_InputCDR   is,
ACE_CDR::Char   x
 

Definition at line 1145 of file CDR_Stream.i.

References ACE_CDR::Char, ACE_InputCDR::good_bit, and ACE_InputCDR::read_char.

01146 {
01147   is.read_char (x);
01148   return is.good_bit ();
01149 }


Generated on Mon Jun 16 11:30:06 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002