PhmsResponseBody.h 735 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <string>
  3. using namespace std;
  4. class CPhmsResponseBody
  5. {
  6. public:
  7. CPhmsResponseBody(void);
  8. CPhmsResponseBody(istream* pInputStream, void* pPhmsSession);
  9. CPhmsResponseBody(CPhmsResponseBody&);
  10. CPhmsResponseBody& operator=(CPhmsResponseBody&);
  11. ~CPhmsResponseBody(void);
  12. private:
  13. istream* m_pInputStream;//该变量用于获得Http返回内容
  14. void* m_pPhmsSession;//用于将来的长连接扩展
  15. public:
  16. //Getter
  17. istream* GetInputStreamPointer();
  18. void* GetPhmsSessionPointer();
  19. //Setter
  20. void SetInputStreamPointer(istream* pInputStream);
  21. void SetPhmsSessionPointer(void* pPhmsSession);
  22. int InputStreamToString(string& stringContent);
  23. int InputStreamToFile(string& stringFilePath, bool bFileClearBeforeWrite=true);
  24. };