diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-02 14:43:29 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-02 14:43:29 +0000 |
commit | cdf5c42b6ac723eee666eae1af2f7c6b63d912dc (patch) | |
tree | d71e2cc88495a7721a8643de22c59a031920f322 /ace/CDR_Stream.i | |
parent | 67cf70b022827174fbfab4457b03a85a7bdb7d4e (diff) | |
download | ATCD-cdf5c42b6ac723eee666eae1af2f7c6b63d912dc.tar.gz |
Added << and >> operators for ACE_CDR::Char.
Diffstat (limited to 'ace/CDR_Stream.i')
-rw-r--r-- | ace/CDR_Stream.i | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ace/CDR_Stream.i b/ace/CDR_Stream.i index 8312a69f4a2..919940b52f6 100644 --- a/ace/CDR_Stream.i +++ b/ace/CDR_Stream.i @@ -893,6 +893,13 @@ ACE_InputCDR::good_bit (void) const // **************************************************************** ACE_INLINE ACE_CDR::Boolean +operator<< (ACE_OutputCDR &os, ACE_CDR::Char x) +{ + os.write_char (x); + return os.good_bit (); +} + +ACE_INLINE ACE_CDR::Boolean operator<< (ACE_OutputCDR &os, ACE_CDR::Short x) { os.write_short (x); @@ -1022,6 +1029,13 @@ operator<< (ACE_OutputCDR &os, ACE_OutputCDR::from_wstring x) // **************************************************************** ACE_INLINE ACE_CDR::Boolean +operator>> (ACE_InputCDR &is, ACE_CDR::Char &x) +{ + is.read_char (x); + return is.good_bit (); +} + +ACE_INLINE ACE_CDR::Boolean operator>> (ACE_InputCDR &is, ACE_CDR::Short &x) { is.read_short (x); |