Remote Call Framework 3.4
IBinaryStream.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_IBINARYSTREAM_HPP
19 #define INCLUDE_SF_IBINARYSTREAM_HPP
20 
21 #include <SF/Stream.hpp>
22 
23 namespace SF {
24 
26  class IBinaryStream : public IStream
27  {
28  public:
30  {}
31 
32  IBinaryStream(RCF::MemIstream &is) : IStream(is)
33  {}
34 
36  IBinaryStream(std::istream &is) : IStream(is)
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_IBINARYSTREAM_HPP
Input stream using SF binary serialization.
Definition: IBinaryStream.hpp:26
IBinaryStream(std::istream &is)
Constructs an IBinaryStream from a std::istream. Serialized data will be read from the std::istream...
Definition: IBinaryStream.hpp:36
Definition: ByteBuffer.hpp:188
Base class for input streams using SF serialization. Use operator >>() to deserialize objects from th...
Definition: Stream.hpp:137