Remote Call Framework 3.0
OBinaryStream.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2018, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 3.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_SF_OBINARYSTREAM_HPP
20 #define INCLUDE_SF_OBINARYSTREAM_HPP
21 
22 #include <SF/Stream.hpp>
23 
24 namespace SF {
25 
27  class OBinaryStream : public OStream
28  {
29  public:
31  {}
32 
33  OBinaryStream(RCF::MemOstream &os) : OStream(os)
34  {}
35 
37  OBinaryStream(std::ostream &os) : OStream(os)
38  {}
39 
40  I_Encoding &getEncoding()
41  {
42  return mEncoding;
43  }
44 
45  private:
46  EncodingBinaryPortable mEncoding;
47  };
48 
49 }
50 
51 #endif // ! INCLUDE_SF_OBINARYSTREAM_HPP
Output stream using SF binary serialization.
Definition: OBinaryStream.hpp:27
Definition: ByteBuffer.hpp:189
Base class for output streams using SF serialization. Use operator <<() to serialize objects into the...
Definition: Stream.hpp:236
OBinaryStream(std::ostream &os)
Constructs an OBinaryStream from a std::ostream. Serialized data will be written to the std::ostream...
Definition: OBinaryStream.hpp:37