diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-10 23:11:51 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-10 23:11:51 +0000 |
commit | e9e05c2f09d04998eac200ce24c61b739e637492 (patch) | |
tree | 7d5893ec0249d2db4c8c19c44b9c43f3eabd933c /ace/CDR_Stream.h | |
parent | 2f5d8ca9457a5d4fb8c6816c4c384c80c4e8fb7f (diff) | |
download | ATCD-e9e05c2f09d04998eac200ce24c61b739e637492.tar.gz |
Added all the necessary stuff for wstrings.
Diffstat (limited to 'ace/CDR_Stream.h')
-rw-r--r-- | ace/CDR_Stream.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/ace/CDR_Stream.h b/ace/CDR_Stream.h index 72a476628c1..7e4ed49e2f2 100644 --- a/ace/CDR_Stream.h +++ b/ace/CDR_Stream.h @@ -313,6 +313,16 @@ public: ACE_CDR::Boolean nocopy_; }; + struct ACE_Export from_wstring + { + from_wstring (ACE_CDR::WChar* ws, + ACE_CDR::ULong b, + ACE_CDR::Boolean nocopy = 0); + ACE_CDR::WChar *val_; + ACE_CDR::ULong bound_; + ACE_CDR::Boolean nocopy_; + }; + // = We have one method per basic IDL type.... // They return 0 on failure and 1 on success. ACE_CDR::Boolean write_boolean (ACE_CDR::Boolean x); @@ -607,11 +617,20 @@ public: struct ACE_Export to_string { - to_string (ACE_CDR::Char *&s, ACE_CDR::ULong b); + to_string (ACE_CDR::Char *&s, + ACE_CDR::ULong b); ACE_CDR::Char *&val_; ACE_CDR::ULong bound_; }; + struct ACE_Export to_wstring + { + to_wstring (ACE_CDR::WChar *&ws, + ACE_CDR::ULong b); + ACE_CDR::WChar *&val_; + ACE_CDR::ULong bound_; + }; + // = We have one method per basic IDL type.... // They return 0 on failure and 1 on success. ACE_CDR::Boolean read_boolean (ACE_CDR::Boolean& x); @@ -1018,7 +1037,12 @@ extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_string x); extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, + ACE_OutputCDR::from_wstring x); +extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, const ACE_CDR::Char* x); +extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, + const ACE_CDR::WChar* x); + // CDR input operators for primitive types extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Short &x); @@ -1053,7 +1077,11 @@ extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is, extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_InputCDR::to_string x); extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is, + ACE_InputCDR::to_wstring x); +extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Char*& x); +extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is, + ACE_CDR::WChar*& x); #endif /* __ACE_INLINE */ |