Remote Call Framework 3.3
OTextStream.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2022, 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.3
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_SF_OTEXTSTREAM_HPP
19 #define INCLUDE_SF_OTEXTSTREAM_HPP
20 
21 #include <SF/Stream.hpp>
22 
23 namespace SF {
24 
25  class OTextStream : public OStream
26  {
27  public:
28  OTextStream() : OStream()
29  {}
30 
31  OTextStream(RCF::MemOstream &os) : OStream(os)
32  {}
33 
34  OTextStream(std::ostream &os) : OStream(os)
35  {}
36 
37  I_Encoding &getEncoding()
38  {
39  return mEncoding;
40  }
41 
42  private:
43  EncodingText mEncoding;
44  };
45 
46 }
47 
48 #endif // ! INCLUDE_SF_OTEXTSTREAM_HPP
Definition: ByteBuffer.hpp:188