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