#include <KV1.h>
|
| KV1 (std::string_view kv1Data, bool useEscapeSequences_=false) |
|
std::string_view | getKey () const |
| Get the key associated with the element.
|
|
std::string_view | getValue () const |
| Get the value associated with the element.
|
|
V | getValue () const |
| Get the value associated with the element as the given type.
|
|
std::string_view | getConditional () const |
| Get the conditional associated with the element.
|
|
bool | hasChild (std::string_view childKey) const |
| Check if the element has one or more children with the given name.
|
|
uint64_t | getChildCount () const |
| Get the number of child elements.
|
|
uint64_t | getChildCount (std::string_view childKey) const |
| Get the number of child elements with the given key.
|
|
const std::vector< KV1ElementReadable > & | getChildren () const |
| Get the child elements of the element.
|
|
const KV1ElementBase & | operator[] (unsigned int n) const |
| Get the child element of the element at the given index.
|
|
const KV1ElementBase & | operator[] (std::string_view childKey) const |
| Get the first child element of the element with the given key.
|
|
const KV1ElementBase & | operator() (std::string_view childKey) const |
| Get the first child element of the element with the given key.
|
|
const KV1ElementBase & | operator() (std::string_view childKey, unsigned int n) const |
| Get the nth child element of the element with the given key.
|
|
bool | isInvalid () const |
| Check if the given element is invalid.
|
|
Definition at line 189 of file KV1.h.
◆ KV1()
KV1::KV1 |
( |
std::string_view |
kv1Data, |
|
|
bool |
useEscapeSequences_ = false |
|
) |
| |
|
explicit |
◆ backingData
std::string kvpp::KV1::backingData |
|
protected |
◆ useEscapeSequences
bool kvpp::KV1::useEscapeSequences |
|
protected |
The documentation for this class was generated from the following files: