#include "IMFHeaderField.h" #include "Exception.h" #include "Log.h" #include #include namespace coreutils { IMFHeaderField::IMFHeaderField(char &ch, int fd) { int rc = 0; if((ch >= 'A') && (ch <= 'Z')) key.write(); while(ch != ':') { rc = ::read(fd, &ch, 1); if(ch != ':') key.write(ch); } rc = ::read(fd, &ch, 1); while(ch == ' ') rc = ::read(fd, &ch, 1); while(ch != '\r') { rc = ::read(fd, &ch, 1); if(ch != '\r') value.write(ch); } rc = ::read(fd, &ch, 1); } }