Arduino KVComm
master
Key-Value pair communication library for Arduino
|
Go to the documentation of this file.
3 #if !defined(ARDUINO) || defined(DOXYGEN)
34 bool operator()(
const char *a,
const char *b)
const;
37 using map_t = std::map<const char *, KV, strcmp>;
104 map_t parse(
const uint8_t *buffer,
size_t length);
map_t::const_iterator end() const
End iterator over all entries in the dictionary.
KV operator[](const char *key) const
Get the element with the given key.
map_t::const_iterator begin() const
Begin iterator over all entries in the dictionary.
map_t parse(const uint8_t *buffer, size_t length)
Parse the buffer for key-value pairs, save their keys, type, and size in an std::map,...
Functor to compare the map keys.
map_t::iterator begin()
Begin iterator over all entries in the dictionary.
std::map< const char *, KV, strcmp > map_t
KV_Type type definitions for fundamental types (int::_t, uint::_t, float, double, bool,...
bool operator()(const char *a, const char *b) const
bool contains(const char *key) const
Check if the dictionary contains an element with the given key.
A parser for dictionaries generated by the KV_Builder.
KV_Parser(const uint8_t *buffer, size_t length)
Parse a raw buffer into a new KV_Parser.
KV getElement(const char *key) const
Get the element with the given key.
map_t::iterator end()
End iterator over all entries in the dictionary.