#include "ace/OS_NS_string.h"
#include "ace/OS_Memory.h"
Include dependency graph for CDR_Stream.inl:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_OutputCDR::from_wstring | x | |||
) |
Definition at line 1211 of file CDR_Stream.inl.
References ACE_OutputCDR::from_wstring::bound_, ACE_OutputCDR::good_bit(), ACE_OS::strlen(), ACE_OutputCDR::from_wstring::val_, and ACE_OutputCDR::write_wstring().
01212 { 01213 ACE_CDR::ULong len = 0; 01214 01215 if (x.val_ != 0) 01216 { 01217 len = static_cast<ACE_CDR::ULong> (ACE_OS::strlen (x.val_)); 01218 } 01219 01220 os.write_wstring (len, x.val_); 01221 return 01222 (ACE_CDR::Boolean) (os.good_bit () && (!x.bound_ || len <= x.bound_)); 01223 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_OutputCDR::from_string | x | |||
) |
Definition at line 1196 of file CDR_Stream.inl.
References ACE_OutputCDR::from_string::bound_, ACE_OutputCDR::good_bit(), ACE_OS::strlen(), ACE_OutputCDR::from_string::val_, and ACE_OutputCDR::write_string().
01197 { 01198 ACE_CDR::ULong len = 0; 01199 01200 if (x.val_ != 0) 01201 { 01202 len = static_cast<ACE_CDR::ULong> (ACE_OS::strlen (x.val_)); 01203 } 01204 01205 os.write_string (len, x.val_); 01206 return 01207 (ACE_CDR::Boolean) (os.good_bit () && (!x.bound_ || len <= x.bound_)); 01208 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_OutputCDR::from_octet | x | |||
) |
Definition at line 1189 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), ACE_OutputCDR::from_octet::val_, and ACE_OutputCDR::write_octet().
01190 { 01191 os.write_octet (x.val_); 01192 return (ACE_CDR::Boolean) os.good_bit (); 01193 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_OutputCDR::from_wchar | x | |||
) |
Definition at line 1182 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), ACE_OutputCDR::from_wchar::val_, and ACE_OutputCDR::write_wchar().
01183 { 01184 os.write_wchar (x.val_); 01185 return (ACE_CDR::Boolean) os.good_bit (); 01186 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_OutputCDR::from_char | x | |||
) |
Definition at line 1175 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), ACE_OutputCDR::from_char::val_, and ACE_OutputCDR::write_char().
01176 { 01177 os.write_char (x.val_); 01178 return (ACE_CDR::Boolean) os.good_bit (); 01179 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_OutputCDR::from_boolean | x | |||
) |
Definition at line 1168 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), ACE_OutputCDR::from_boolean::val_, and ACE_OutputCDR::write_boolean().
01169 { 01170 (void) os.write_boolean (x.val_); 01171 return (ACE_CDR::Boolean) os.good_bit (); 01172 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
const ACE_CDR::WChar * | x | |||
) |
Definition at line 1160 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_wstring().
01161 { 01162 os.write_wstring (x); 01163 return (ACE_CDR::Boolean) os.good_bit (); 01164 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
const ACE_CDR::Char * | x | |||
) |
Definition at line 1153 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_string().
01154 { 01155 os.write_string (x); 01156 return (ACE_CDR::Boolean) os.good_bit (); 01157 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::Double | x | |||
) |
Definition at line 1146 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_double().
01147 { 01148 os.write_double (x); 01149 return (ACE_CDR::Boolean) os.good_bit (); 01150 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::Float | x | |||
) |
Definition at line 1139 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_float().
01140 { 01141 os.write_float (x); 01142 return (ACE_CDR::Boolean) os.good_bit (); 01143 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::LongDouble | x | |||
) |
Definition at line 1132 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_longdouble().
01133 { 01134 os.write_longdouble (x); 01135 return (ACE_CDR::Boolean) os.good_bit (); 01136 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::ULongLong | x | |||
) |
Definition at line 1125 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_ulonglong().
01126 { 01127 os.write_ulonglong (x); 01128 return (ACE_CDR::Boolean) os.good_bit (); 01129 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::LongLong | x | |||
) |
Definition at line 1118 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_longlong().
01119 { 01120 os.write_longlong (x); 01121 return (ACE_CDR::Boolean) os.good_bit (); 01122 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::ULong | x | |||
) |
Definition at line 1111 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_ulong().
01112 { 01113 os.write_ulong (x); 01114 return (ACE_CDR::Boolean) os.good_bit (); 01115 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::Long | x | |||
) |
Definition at line 1104 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_long().
01105 { 01106 os.write_long (x); 01107 return (ACE_CDR::Boolean) os.good_bit (); 01108 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::UShort | x | |||
) |
Definition at line 1097 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_ushort().
01098 { 01099 os.write_ushort (x); 01100 return (ACE_CDR::Boolean) os.good_bit (); 01101 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::Short | x | |||
) |
Definition at line 1090 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_short().
01091 { 01092 os.write_short (x); 01093 return (ACE_CDR::Boolean) os.good_bit (); 01094 }
ACE_INLINE ACE_CDR::Boolean operator<< | ( | ACE_OutputCDR & | os, | |
ACE_CDR::Char | x | |||
) |
Definition at line 1083 of file CDR_Stream.inl.
References ACE_OutputCDR::good_bit(), and ACE_OutputCDR::write_char().
01084 { 01085 os.write_char (x); 01086 return (ACE_CDR::Boolean) os.good_bit (); 01087 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_InputCDR::to_wstring | x | |||
) |
Definition at line 1336 of file CDR_Stream.inl.
References ACE_InputCDR::to_wstring::bound_, ACE_InputCDR::good_bit(), ACE_InputCDR::read_wstring(), ACE_OS::strlen(), and ACE_InputCDR::to_wstring::val_.
01337 { 01338 // check if the bounds are satisfied 01339 return 01340 (is.read_wstring (const_cast<ACE_CDR::WChar *&> (x.val_)) 01341 && is.good_bit () 01342 && (!x.bound_ 01343 || ACE_OS::strlen (x.val_) <= x.bound_)); 01344 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_InputCDR::to_string | x | |||
) |
Definition at line 1325 of file CDR_Stream.inl.
References ACE_InputCDR::to_string::bound_, ACE_InputCDR::good_bit(), ACE_InputCDR::read_string(), ACE_OS::strlen(), and ACE_InputCDR::to_string::val_.
01326 { 01327 // check if the bounds are satisfied 01328 return 01329 (is.read_string (const_cast<char *&> (x.val_)) 01330 && is.good_bit () 01331 && (!x.bound_ 01332 || ACE_OS::strlen (x.val_) <= x.bound_)); 01333 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_InputCDR::to_octet | x | |||
) |
Definition at line 1319 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), ACE_InputCDR::read_octet(), and ACE_InputCDR::to_octet::ref_.
01320 { 01321 return is.read_octet (x.ref_) && is.good_bit (); 01322 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_InputCDR::to_wchar | x | |||
) |
Definition at line 1313 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), ACE_InputCDR::read_wchar(), and ACE_InputCDR::to_wchar::ref_.
01314 { 01315 return is.read_wchar (x.ref_) && is.good_bit (); 01316 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_InputCDR::to_char | x | |||
) |
Definition at line 1307 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), ACE_InputCDR::read_char(), and ACE_InputCDR::to_char::ref_.
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_InputCDR::to_boolean | x | |||
) |
Definition at line 1301 of file CDR_Stream.inl.
References ACE_InputCDR::read_boolean(), and ACE_InputCDR::to_boolean::ref_.
01302 { 01303 return is.read_boolean (x.ref_); 01304 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::WChar *& | x | |||
) |
Definition at line 1294 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_wstring().
01295 { 01296 return is.read_wstring (x) && is.good_bit (); 01297 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::Char *& | x | |||
) |
Definition at line 1288 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_string().
01289 { 01290 return is.read_string (x) && is.good_bit (); 01291 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::Double & | x | |||
) |
Definition at line 1282 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_double().
01283 { 01284 return is.read_double (x) && is.good_bit (); 01285 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::Float & | x | |||
) |
Definition at line 1276 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_float().
01277 { 01278 return is.read_float (x) && is.good_bit (); 01279 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::LongDouble & | x | |||
) |
Definition at line 1270 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_longdouble().
01271 { 01272 return is.read_longdouble (x) && is.good_bit (); 01273 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::ULongLong & | x | |||
) |
Definition at line 1264 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_ulonglong().
01265 { 01266 return is.read_ulonglong (x) && is.good_bit (); 01267 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::LongLong & | x | |||
) |
Definition at line 1258 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_longlong().
01259 { 01260 return is.read_longlong (x) && is.good_bit (); 01261 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::ULong & | x | |||
) |
Definition at line 1252 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_ulong().
01253 { 01254 return is.read_ulong (x) && is.good_bit (); 01255 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::Long & | x | |||
) |
Definition at line 1246 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_long().
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::UShort & | x | |||
) |
Definition at line 1240 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_ushort().
01241 { 01242 return is.read_ushort (x) && is.good_bit (); 01243 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::Short & | x | |||
) |
Definition at line 1234 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_short().
01235 { 01236 return is.read_short (x) && is.good_bit (); 01237 }
ACE_INLINE ACE_CDR::Boolean operator>> | ( | ACE_InputCDR & | is, | |
ACE_CDR::Char & | x | |||
) |
Definition at line 1228 of file CDR_Stream.inl.
References ACE_InputCDR::good_bit(), and ACE_InputCDR::read_char().