#ifndef __IMFMessage_h__ #define __IMFMessage_h__ #include "PString.h" #include "IMFHeader.h" #include "IMFRequest.h" #include "IMFBody.h" namespace coreutils { class IMFMessage { public: IMFMessage(); IMFMessage(PString &in); void parse(PString &in); void output(std::stringstream &out); IMFRequest *request; void addHeader(std::string key, std::string value); std::string getHeader(std::string key, bool valueOnly = true); std::string getHeaderKeyPairValue(std::string headerKey, std::string key); IMFBody *body; protected: std::vector headers; }; } #endif