中间件底层,websocket

ITextStream.hpp 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_ITEXTSTREAM_HPP
  18. #define INCLUDE_SF_ITEXTSTREAM_HPP
  19. #include <SF/Stream.hpp>
  20. namespace RCF {
  21. class MemIstream;
  22. }
  23. namespace SF {
  24. class ITextStream : public IStream
  25. {
  26. public:
  27. ITextStream() : IStream()
  28. {}
  29. ITextStream(RCF::MemIstream &is) : IStream(is)
  30. {}
  31. ITextStream(std::istream &is) : IStream(is)
  32. {}
  33. I_Encoding &getEncoding()
  34. {
  35. return mEncoding;
  36. }
  37. private:
  38. EncodingText mEncoding;
  39. };
  40. }
  41. #endif // ! INCLUDE_SF_ITEXTSTREAM_HPP