URI.hh
Go to the documentation of this file.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: SuppressWarning.hh:64
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: SuppressWarning.hh:67
URIFragment(const std::string &_str)
Construct a URIFragment object from a string.
URIFragment & operator=(const URIFragment &_fragment)
Assignment operator.
bool Parse(const std::string &_string)
Parse a string as URIFragment.
static bool Valid(const std::string &_str)
Check if a string is a valid URI fragment.
bool operator==(const URIFragment &_fragment) const
Return true if the two fragments contain the same values.
URIFragment & operator=(const std::string &_fragment)
Assignment operator.
URIFragment(const URIFragment &_fragment)
Copy constructor.
bool operator==(const URIPath &_path) const
Return true if the two paths match.
const URIPath & operator/=(const std::string &_part)
Compound assignment operator.
const URIPath operator/(const std::string &_part) const
Get the current path with the _part added to the end.
void PushFront(const std::string &_part)
Push a new part onto the front of this path.
void SetAbsolute(bool _absolute=true)
Set whether the path is to be treated absolute or not.
std::string Str(const std::string &_delim="/") const
Get the path as a string.
static bool Valid(const std::string &_str)
Return true if the string is a valid path.
URIPath(const std::string &_str)
Construct a URIPath object from a string.
void PushBack(const std::string &_part)
Push a new part onto the back of this path.
bool IsAbsolute() const
Returns whether the path is absolute or not.
URIQuery(const std::string &_str)
Construct a URIQuery object from a string.
void Insert(const std::string &_key, const std::string &_value)
Get this query with a new _key=_value pair added.
URIQuery & operator=(const URIQuery &_query)
Assignment operator.
static bool Valid(const std::string &_str)
Check if a string is a valid URI query.
bool operator==(const URIQuery &_query) const
Return true if the two queries contain the same values.
std::string Str(const std::string &_delim="&") const
Get the query as a string.
const URIQuery & Query() const
Get a const reference of the query component.
bool operator==(const URI &_uri) const
Return true if the two URIs match.
URIFragment & Fragment()
Get a mutable version of the fragment component.
const URIFragment & Fragment() const
Get a const reference of the fragment component.
Forward declarations for the common classes.