|
| | KV1Binary (std::span< const std::byte > kv1Data={}) |
| | KV1Binary (const std::filesystem::path &kv1Path) |
| std::vector< std::byte > | bake () const |
| void | bake (const std::filesystem::path &kv1Path) const |
| std::string | bakeText () const |
| void | bakeText (const std::filesystem::path &kv1Path) const |
| | KV1BinaryElement ()=default |
| std::string_view | getKey () const |
| | Get the key associated with the element.
|
| void | setKey (std::string_view key_) |
| | Set the key associated with the element.
|
| const KV1BinaryValue & | getValue () const |
| | Get the value associated with the element.
|
| template<KV1BinaryValueNoChildren V> |
| std::optional< V > | getValue () const |
| | Get the value associated with the element as the given type.
|
| void | setValue (KV1BinaryValue value_) |
| | Set the value associated with the element.
|
| KV1BinaryElement & | operator= (KV1BinaryValue value_) |
| | Set the value associated with the element.
|
| template<KV1BinaryValueNoChildren V> |
| void | setValue (V value_) |
| | Set the value associated with the element.
|
| template<KV1BinaryValueNoChildren V> |
| KV1BinaryElement & | operator= (V value_) |
| | Set the value associated with the element.
|
| bool | hasChild (std::string_view childKey) const |
| | Check if the element has one or more children with the given name.
|
| KV1BinaryElement & | addChild (std::string_view key_, KV1BinaryValue value_={}) |
| | Add a child element to the element.
|
| template<KV1BinaryValueNoChildren V> |
| KV1BinaryElement & | addChild (std::string_view key_, V value_={}) |
| | Add a child element to the element.
|
| 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< KV1BinaryElement > & | getChildren () const |
| | Get the child elements of the element.
|
| std::vector< KV1BinaryElement > & | getChildren () |
| | Get the child elements of the element.
|
| constexpr iterator | begin () |
| constexpr iterator | end () |
| constexpr const_iterator | begin () const |
| constexpr const_iterator | end () const |
| constexpr const_iterator | cbegin () const |
| constexpr const_iterator | cend () const |
| const KV1BinaryElement & | operator[] (unsigned int n) const |
| | Get the child element of the element at the given index.
|
| KV1BinaryElement & | operator[] (unsigned int n) |
| | Get the child element of the element at the given index.
|
| const KV1BinaryElement & | operator[] (std::string_view childKey) const |
| | Get the first child element of the element with the given key.
|
| KV1BinaryElement & | operator[] (std::string_view childKey) |
| | Get the first child element of the element with the given key, or create a new element if it doesn't exist.
|
| const KV1BinaryElement & | operator() (std::string_view childKey) const |
| | Get the first child element of the element with the given key.
|
| KV1BinaryElement & | operator() (std::string_view childKey) |
| | Get the first child element of the element with the given key, or create a new element if it doesn't exist.
|
| const KV1BinaryElement & | operator() (std::string_view childKey, unsigned int n) const |
| | Get the nth child element of the element with the given key.
|
| KV1BinaryElement & | operator() (std::string_view childKey, unsigned int n) |
| | Get the nth child element of the element with the given key, or create a new element if it doesn't exist.
|
| void | removeChild (unsigned int n) |
| | Remove a child element from the element.
|
| void | removeChild (std::string_view childKey, int n=-1) |
| | Remove a child element from the element with the given key. -1 means all children with the given key.
|
| bool | isInvalid () const |
| | Check if the given element is invalid.
|
| | operator bool () const |
Definition at line 188 of file KV1Binary.h.