All sorts of new crap and adjustments
This commit is contained in:
1 parent
5bd9e9ca21
commit
ff2c2b7432
84 files changed
+5935
-664
No files matched your search
+9
-10
@@ -1,32 +1,31 @@
|
||||
#ifndef __IMFMessage_h__
|
||||
#define __IMFMessage_h__
|
||||
|
||||
#include "PString.h"
|
||||
#include "ZString.h"
|
||||
#include "IMFHeader.h"
|
||||
#include "IMFRequest.h"
|
||||
#include "IMFBody.h"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
class IMFMessage {
|
||||
class IMFMessage : public ZString {
|
||||
|
||||
public:
|
||||
IMFMessage();
|
||||
IMFMessage(PString &in);
|
||||
|
||||
bool parse(PString &in);
|
||||
IMFMessage(ZString &in);
|
||||
|
||||
void output(std::stringstream &out);
|
||||
|
||||
void addHeader(std::string key, std::string value);
|
||||
void addHeader(ZString key, ZString value);
|
||||
void addHeader(const char *key, ZString value);
|
||||
|
||||
std::string getHeader(std::string key, bool valueOnly = true);
|
||||
std::string getHeaderKeyPairValue(std::string headerKey, std::string key);
|
||||
ZString getHeader(ZString key, bool valueOnly = true);
|
||||
ZString getHeaderKeyPairValue(ZString headerKey, ZString key);
|
||||
|
||||
IMFBody *getBody();
|
||||
IMFBody * getBody();
|
||||
|
||||
protected:
|
||||
std::vector<IMFHeader> headers;
|
||||
|
||||
IMFBody *body;
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user