11 namespace PostDataType
26 static WebPostData CreateTextData(
const std::string& textContent);
27 static WebPostData CreateBufferData(
const std::string& fileName,
const std::vector<Byte>& bufferContents);
29 PostDataType::Values GetPostDataType()
const;
30 const std::string& GetTextContent()
const;
32 const Byte* GetBufferPointer()
const;
33 const long GetBufferLength()
const;
35 const char* GetRawData()
const;
36 int GetRawDataSize()
const;
40 WebPostData(
const PostDataType::Values postDataType,
41 const std::string& textContent);
43 WebPostData(
const PostDataType::Values postDataType,
44 const std::string& textContent,
45 const std::vector<Byte>& bufferContent);
47 PostDataType::Values m_postDataType;
48 std::string m_textContent;
49 std::vector<Byte> m_bufferContent;