Gazebo Common

API Reference

5.6.0

The fragment component of a URI. More...

#include <URI.hh>

Public Member Functions

 URIFragment ()
 Constructor. More...
 
 URIFragment (const std::string &_str)
 Construct a URIFragment object from a string. More...
 
void Clear ()
 Remove all values of the fragment. More...
 
URIFragmentoperator= (const std::string &_fragment)
 Assignment operator. More...
 
bool operator== (const URIFragment &_fragment) const
 Return true if the two fragments contain the same values. More...
 
bool Parse (const std::string &_string)
 Parse a string as URIFragment. More...
 
std::string Str () const
 Get the fragment as a string. More...
 
bool Valid () const
 Check if this is a valid URI fragment. More...
 

Static Public Member Functions

static bool Valid (const std::string &_str)
 Check if a string is a valid URI fragment. More...
 

Detailed Description

The fragment component of a URI.

Constructor & Destructor Documentation

◆ URIFragment() [1/2]

Constructor.

◆ URIFragment() [2/2]

URIFragment ( const std::string _str)
explicit

Construct a URIFragment object from a string.

Parameters
[in]_strA string.

Member Function Documentation

◆ Clear()

void Clear ( )

Remove all values of the fragment.

◆ operator=()

URIFragment& operator= ( const std::string _fragment)

Assignment operator.

Parameters
[in]_fragmentanother URIFragment.
Returns
Itself.

◆ operator==()

bool operator== ( const URIFragment _fragment) const

Return true if the two fragments contain the same values.

Parameters
[in]_fragmentA URI fragment to compare. return True if the fragments match.

◆ Parse()

bool Parse ( const std::string _string)

Parse a string as URIFragment.

Parameters
[in]_strA string.
Returns
True if the string can be parsed as a URIFragment.

◆ Str()

std::string Str ( ) const

Get the fragment as a string.

Returns
The fragment as a string.

◆ Valid() [1/2]

bool Valid ( ) const

Check if this is a valid URI fragment.

Returns
True if this can be parsed as a URI fragment.

◆ Valid() [2/2]

static bool Valid ( const std::string _str)
static

Check if a string is a valid URI fragment.

Parameters
[in]_strThe string to check.
Returns
True if the string can be parsed as a URI fragment.

The documentation for this class was generated from the following file: