Aller à la documentation de ce fichier.
51 #include <rok4/utils/ResourceLocator.h>
81 if (! doc[
"format"].is_string()) {
82 missingField =
"format";
85 format = doc[
"format"].string_value();
87 if (! doc[
"url"].is_string()) {
91 href = doc[
"url"].string_value();
93 if (! doc[
"type"].is_string()) {
94 missingField =
"type";
97 type = doc[
"type"].string_value();
100 std::string getTmsXml() {
101 return "<Metadata type=\"" + type +
"\" mime-type=\"" + format +
"\" href=\"" + href +
"\" />\n";
115 href = origMtdUrl.href;
116 format = origMtdUrl.format;
117 type = origMtdUrl.type;
126 if (
this != &other ) {
127 ResourceLocator::operator= ( other );
128 this->type = other.type;
141 return ( this->type.compare ( other.type ) == 0
142 && this->getFormat().compare ( other.getFormat() ) == 0
143 && this->getHRef().compare ( other.getHRef() ) == 0 );
154 return ! ( *
this == other );
178 #endif // METADATAURL_H