Library: Net
Package: Messages
Header: Poco/Net/StringPartSource.h
An implementation of PartSource for strings.
Direct Base Classes: PartSource
All Base Classes: PartSource
Member Functions: filename, stream
Inherited Functions: filename, headers, mediaType, stream
StringPartSource(
const std::string & str
);
Creates the StringPartSource for the given string.
The MIME type is set to text/plain.
StringPartSource(
const std::string & str,
const std::string & mediaType
);
Creates the StringPartSource for the given string and MIME type.
StringPartSource(
const std::string & str,
const std::string & mediaType,
const std::string & filename
);
Creates the StringPartSource for the given string, MIME type and filename.
~StringPartSource();
Destroys the StringPartSource.
const std::string & filename();
Returns the filename portion of the path.
See also: Poco::Net::PartSource::filename()
std::istream & stream();
Returns a string input stream for the string.
See also: Poco::Net::PartSource::stream()