|
libcex
1.0.0
Modern C++11 embedded webserver library
|
A simple list of properties implemented using std::unordered_map
More...
#include <plist.hpp>
Public Member Functions | |
| Property * | getProperty (std::string key) |
| Retrieves the Property object of a given key. | |
| template<typename T > | |
| T * | getObject (std::string key) |
Retrieves the value of a given key as a class-pointer value (of type T) | |
| long | getLong (std::string key) |
| Retrieves the long value of a given key. | |
| double | getDouble (std::string key) |
| Retrieves the double value of a given key. | |
| std::string | getString (std::string key) |
| Retrieves the string value of a given key. | |
| void | set (std::string key, std::string value) |
| Sets the value of a key to a string value. Replaces previous values of a key. | |
| void | set (std::string key, std::string &&value) |
| Sets the value of a key to a string value (moving the content). Replaces previous values of a key. | |
| void | set (std::string key, long value) |
| Sets the value of a key to a long value. Replaces previous values of a key. | |
| void | set (std::string key, double value) |
| Sets the value of a key to a double value. Replaces previous values of a key. | |
| void | set (std::string key, void *value) |
| Sets the value of a key to a void* value. Replaces previous values of a key. | |
| bool | has (std::string key) |
| Checks if the list contains a given key. | |
| size_t | remove (std::string key) |
| Removes a key from the list and returns the number of elements removed (0 or 1) | |
A simple list of properties implemented using std::unordered_map
Each entry in the map is of type Property and can hold a value
1.8.16