CoreUtils/IMFFormData.cpp
2019-08-02 15:43:31 -07:00

22 lines
468 B
C++

#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;
}
}