18 #ifndef GAZEBO_COMMON_URI_HH_
19 #define GAZEBO_COMMON_URI_HH_
31 class URIQueryPrivate;
46 public:
URIPath(
const std::string &_str);
56 public:
void PushFront(
const std::string &_part);
61 public:
void PushBack(
const std::string &_part);
66 public:
const URIPath &operator/=(
const std::string &_part);
72 public:
const URIPath operator/(
const std::string &_part)
const;
77 public:
bool operator==(
const URIPath &_path)
const;
82 public: std::string Str(
const std::string &_delim =
"/")
const;
92 public:
static bool Valid(
const std::string &_str);
96 public:
bool Valid()
const;
101 public:
bool Parse(
const std::string &_str);
105 private: std::unique_ptr<URIPathPrivate> dataPtr;
116 public:
URIQuery(
const std::string &_str);
126 public:
void Clear();
131 public:
void Insert(
const std::string &_key,
132 const std::string &_value);
142 public:
bool operator==(
const URIQuery &_query)
const;
148 public: std::string Str(
const std::string &_delim =
"&")
const;
153 public:
static bool Valid(
const std::string &_str);
157 public:
bool Valid()
const;
162 public:
bool Parse(
const std::string &_string);
166 private: std::unique_ptr<URIQueryPrivate> dataPtr;
170 class GZ_COMMON_VISIBLE
URI
177 public:
URI(
const std::string &_str);
181 public:
URI(
const URI &_uri);
191 public: std::string Str()
const;
194 public:
void Clear();
198 public: std::string Scheme()
const;
202 public:
void SetScheme(
const std::string &_scheme);
215 public:
URI &operator=(
const URI &_uri);
220 public:
bool operator==(
const URI &_uri)
const;
224 public:
bool Valid()
const;
229 public:
static bool Valid(
const std::string &_str);
234 public:
bool Parse(
const std::string &_str);
238 private: std::unique_ptr<URIPrivate> dataPtr;
A complete URI.
Definition: URI.hh:170
The path component of a URI.
Definition: URI.hh:35
The query component of a URI.
Definition: URI.hh:109