|
| TagList () |
| Constructor. More...
|
|
| TagList (std::initializer_list< std::pair< std::string, std::string > > tags) |
| Construct a tag list from a list of key/value pairs. More...
|
|
size_t | size () const |
| Returns the number of key/value pairs in this tag list. More...
|
|
std::map< std::string, std::string >::const_iterator | cbegin () const noexcept |
| Iterator, for accessing all key/value pairs in this tag list. More...
|
|
std::map< std::string, std::string >::const_iterator | cend () const noexcept |
| Iterator, for accessing all key/value pairs in this tag list. More...
|
|
void | clear () |
| Clear the tag list. More...
|
|
void | set (const std::string &key, const std::string &value) |
| Set a key to a value. More...
|
|
void | unset (const std::string &key) |
| Unset a key. More...
|
|
bool | contains (const std::string &key) const |
| Check if this list contains a given key. More...
|
|
const std::string & | value (const std::string &key, const std::string &defaultValue=std::string()) const |
| Return the value to a given key, or the defaultValue if the key is not set. More...
|
|
bool | value (const std::string &key, signed char *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
signed char | value (const std::string &key, signed char defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, unsigned char *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
unsigned char | value (const std::string &key, unsigned char defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, signed short *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
signed short | value (const std::string &key, signed short defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, unsigned short *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
unsigned short | value (const std::string &key, unsigned short defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, signed int *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
signed int | value (const std::string &key, signed int defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, unsigned int *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
unsigned int | value (const std::string &key, unsigned int defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, signed long *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
signed long | value (const std::string &key, signed long defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, unsigned long *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
unsigned long | value (const std::string &key, unsigned long defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, signed long long *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
signed long long | value (const std::string &key, signed long long defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, unsigned long long *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
unsigned long long | value (const std::string &key, unsigned long long defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, float *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
float | value (const std::string &key, float defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, double *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
double | value (const std::string &key, double defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
bool | value (const std::string &key, long double *result) const |
| Return the value to a given key in result and return true, or return false if the key is not set. More...
|
|
long double | value (const std::string &key, long double defaultValue) const |
| Return the value to a given key, falling back to defaultValue if necessary. More...
|
|
A tag list to store key/value pairs, where both key and value are strings.