Remote Call Framework 3.4
OBinaryStream.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2023, Delta V Software. All rights reserved.
6 // https://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 under GPL terms.
12 //
13 // Version: 3.4
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_SF_OBINARYSTREAM_HPP
19 #define INCLUDE_SF_OBINARYSTREAM_HPP
20 
21 #include <SF/Stream.hpp>
22 
23 namespace SF {
24 
26  class OBinaryStream : public OStream
27  {
28  public:
30  {}
31 
32  OBinaryStream(RCF::MemOstream &os) : OStream(os)
33  {}
34 
36  OBinaryStream(std::ostream &os) : OStream(os)
37  {}
38 
39  I_Encoding &getEncoding()
40  {
41  return mEncoding;
42  }
43 
44  private:
45  EncodingBinaryPortable mEncoding;
46  };
47 
48 }
49 
50 #endif // ! INCLUDE_SF_OBINARYSTREAM_HPP
Output stream using SF binary serialization.
Definition: OBinaryStream.hpp:26
Definition: ByteBuffer.hpp:188
Base class for output streams using SF serialization. Use operator <<() to serialize objects into the...
Definition: Stream.hpp:235
OBinaryStream(std::ostream &os)
Constructs an OBinaryStream from a std::ostream. Serialized data will be written to the std::ostream...
Definition: OBinaryStream.hpp:36