Liblinphone
5.4.0
|
Object that represents key-value pair container. More...
#include <dictionary.hh>
Public Member Functions | |
LINPHONECXX_PUBLIC | Dictionary (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneDictionary * | cPtr () |
LINPHONECXX_PUBLIC std::list< std::string > | getKeys () const |
Returns the list of keys present in the dictionary. More... | |
LINPHONECXX_PUBLIC void | clear () |
Clears the dictionary. | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Dictionary > | clone () const |
Instantiates a new dictionary with values from source. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Buffer > | getBuffer (const std::string &key) const |
Gets the LinphoneBuffer value of a key. More... | |
LINPHONECXX_PUBLIC float | getFloat (const std::string &key) const |
Gets the float value of a key. More... | |
LINPHONECXX_PUBLIC int | getInt (const std::string &key) const |
Gets the int value of a key. More... | |
LINPHONECXX_PUBLIC int64_t | getInt64 (const std::string &key) const |
Gets the int64 value of a key. More... | |
LINPHONECXX_PUBLIC std::string | getString (const std::string &key) const |
Gets the char* value of a key. More... | |
LINPHONECXX_PUBLIC linphone::Status | hasKey (const std::string &key) const |
Search if the key is present in the dictionary. More... | |
LINPHONECXX_PUBLIC linphone::Status | remove (const std::string &key) |
Removes the pair of the key. More... | |
LINPHONECXX_PUBLIC void | setBuffer (const std::string &key, const std::shared_ptr< linphone::Buffer > &value) |
Sets a LinphoneBuffer value to a key. More... | |
LINPHONECXX_PUBLIC void | setFloat (const std::string &key, float value) |
Sets a float value to a key. More... | |
LINPHONECXX_PUBLIC void | setInt (const std::string &key, int value) |
Sets a int value to a key. More... | |
LINPHONECXX_PUBLIC void | setInt64 (const std::string &key, int64_t value) |
Sets a int64 value to a key. More... | |
LINPHONECXX_PUBLIC void | setString (const std::string &key, const std::string &value) |
Sets a char* value to a key. More... | |
Object that represents key-value pair container.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Dictionary> linphone::Dictionary::clone | ( | ) | const |
Instantiates a new dictionary with values from source.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Buffer> linphone::Dictionary::getBuffer | ( | const std::string & | key | ) | const |
Gets the LinphoneBuffer value of a key.
key | The key. |
LINPHONECXX_PUBLIC float linphone::Dictionary::getFloat | ( | const std::string & | key | ) | const |
Gets the float value of a key.
key | The key. |
LINPHONECXX_PUBLIC int linphone::Dictionary::getInt | ( | const std::string & | key | ) | const |
Gets the int value of a key.
key | The key. |
LINPHONECXX_PUBLIC int64_t linphone::Dictionary::getInt64 | ( | const std::string & | key | ) | const |
Gets the int64 value of a key.
key | The key. |
LINPHONECXX_PUBLIC std::list<std::string> linphone::Dictionary::getKeys | ( | ) | const |
Returns the list of keys present in the dictionary.
LINPHONECXX_PUBLIC std::string linphone::Dictionary::getString | ( | const std::string & | key | ) | const |
Gets the char* value of a key.
key | The key. |
LINPHONECXX_PUBLIC linphone::Status linphone::Dictionary::hasKey | ( | const std::string & | key | ) | const |
Search if the key is present in the dictionary.
key | The key. |
LINPHONECXX_PUBLIC linphone::Status linphone::Dictionary::remove | ( | const std::string & | key | ) |
Removes the pair of the key.
key | The key. |
LINPHONECXX_PUBLIC void linphone::Dictionary::setBuffer | ( | const std::string & | key, |
const std::shared_ptr< linphone::Buffer > & | value | ||
) |
Sets a LinphoneBuffer value to a key.
key | The key. |
value | The LinphoneBuffer value. |
LINPHONECXX_PUBLIC void linphone::Dictionary::setFloat | ( | const std::string & | key, |
float | value | ||
) |
Sets a float value to a key.
key | The key. |
value | The int value. |
LINPHONECXX_PUBLIC void linphone::Dictionary::setInt | ( | const std::string & | key, |
int | value | ||
) |
Sets a int value to a key.
key | The key. |
value | The int value. |
LINPHONECXX_PUBLIC void linphone::Dictionary::setInt64 | ( | const std::string & | key, |
int64_t | value | ||
) |
Sets a int64 value to a key.
key | The key. |
value | The int64 value. |
LINPHONECXX_PUBLIC void linphone::Dictionary::setString | ( | const std::string & | key, |
const std::string & | value | ||
) |
Sets a char* value to a key.
key | The key. |
value | The value. |