#include "IMFFormData.h" #include "IMFMessage.h" #include "IMFPlainText.h" namespace coreutils { IMFFormData::IMFFormData(PString &in, std::string boundary) : IMFMultipart(in, boundary) { } std::string IMFFormData::getByName(std::string name) { std::string value; for(PString section: sections) { IMFMessage message(section); IMFPlainText *text = (IMFPlainText *)message.getBody(); std::cout << text->toString(); } return value; } }