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