www.pudn.com > fanccMSNr.src.rar > MIMEMessage.hpp
#pragma once #include "Message.hpp" #include using namespace std; namespace poral { typedef map Properties; typedef pair Property; /** * Contains MSG message. */ class MIMEMessage: public Message { public: MIMEMessage(const string &message) { parse(message); } MIMEMessage() {} virtual ~MIMEMessage() {} /** Builds MIMEMessage from string */ virtual void parse(const string &message); virtual const string &toString() const; /** * Contains MIME properties. * Access to properties are public. * Value fields are trimmed in parse(), but not trimmed in toString(). */ Properties properties; string version; string contentType; string body; }; }