std::string asString() const
String representation "type[/subtype]"
bool operator>=(const ContentType &lhs, const ContentType &rhs)
ContentType(std::string type_r)
Ctor taking "type[/subtype]"
bool operator==(const ContentType &lhs, const ContentType &rhs)
const std::string & subtype() const
Get subtype.
void subtype(std::string subtype_r)
Set subtype.
bool operator<=(const ContentType &lhs, const ContentType &rhs)
void type(std::string type_r)
Set type.
bool emptySubtype() const
Whether subtype is empty.
const std::string & type() const
Get type.
bool empty() const
Whether type and subtype are empty.
ContentType(std::string type_r, std::string subtype_r)
Ctor taking type and subtype.
Mime type like 'type/subtype' classification of content.
void testAndSet(std::string &var_r, std::string val_r)
bool operator>(const ContentType &lhs, const ContentType &rhs)
std::ostream & operator<<(std::ostream &str, const ContentType &obj)
bool operator!=(const ContentType &lhs, const ContentType &rhs)
bool operator<(const ContentType &lhs, const ContentType &rhs)