中间件底层,websocket

OTextStream.hpp 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //******************************************************************************
  2. // RCF - Remote Call Framework
  3. //
  4. // Copyright (c) 2005 - 2020, Delta V Software. All rights reserved.
  5. // http://www.deltavsoft.com
  6. //
  7. // RCF is distributed under dual licenses - closed source or GPL.
  8. // Consult your particular license for conditions of use.
  9. //
  10. // If you have not purchased a commercial license, you are using RCF
  11. // under GPL terms.
  12. //
  13. // Version: 3.2
  14. // Contact: support <at> deltavsoft.com
  15. //
  16. //******************************************************************************
  17. #ifndef INCLUDE_SF_OTEXTSTREAM_HPP
  18. #define INCLUDE_SF_OTEXTSTREAM_HPP
  19. #include <SF/Stream.hpp>
  20. namespace SF {
  21. class OTextStream : public OStream
  22. {
  23. public:
  24. OTextStream() : OStream()
  25. {}
  26. OTextStream(RCF::MemOstream &os) : OStream(os)
  27. {}
  28. OTextStream(std::ostream &os) : OStream(os)
  29. {}
  30. I_Encoding &getEncoding()
  31. {
  32. return mEncoding;
  33. }
  34. private:
  35. EncodingText mEncoding;
  36. };
  37. }
  38. #endif // ! INCLUDE_SF_OTEXTSTREAM_HPP