![]() |
SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
|
#include <KV1.h>


Public Member Functions | |
| KV1 (std::string_view kv1Data, bool useEscapeSequences_=false) | |
| Public Member Functions inherited from kvpp::KV1ElementReadable< std::string_view > | |
| std::string_view | getKey () const |
| Get the key associated with the element. | |
| std::string_view | getValue () const |
| Get the value associated with the element. | |
| 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 key. | |
| uint64_t | getChildCount () const |
| Get the number of child elements. | |
| const std::vector< KV1ElementReadable > & | getChildren () const |
| Get the child elements of the element. | |
| constexpr iterator | begin () |
| constexpr iterator | end () |
| constexpr const_iterator | cbegin () const |
| constexpr const_iterator | cend () const |
| const KV1ElementReadable & | operator[] (unsigned int n) const |
| Get the child element of the element at the given index. | |
| const KV1ElementReadable & | operator() (std::string_view childKey) const |
| Get the first child element of the element with the given key. | |
| bool | isInvalid () const |
| Check if the given element is invalid. | |
| operator bool () const | |
Protected Attributes | |
| std::string | backingData |
| bool | useEscapeSequences |
| Protected Attributes inherited from kvpp::KV1ElementReadable< std::string_view > | |
| std::string_view | key |
| std::string_view | value |
| std::string_view | conditional |
| std::vector< KV1ElementReadable > | children |
Additional Inherited Members | |
| Public Types inherited from kvpp::KV1ElementReadable< std::string_view > | |
| using | iterator |
| using | const_iterator |
| Static Public Member Functions inherited from kvpp::KV1ElementReadable< std::string_view > | |
| static const KV1ElementReadable & | getInvalid () |
| Protected Member Functions inherited from kvpp::KV1ElementReadable< std::string_view > | |
| KV1ElementReadable ()=default | |
| Static Protected Member Functions inherited from kvpp::KV1ElementReadable< std::string_view > | |
| static void | read (BufferStreamReadOnly &stream, BufferStream &backing, std::vector< KV1ElementReadable > &elements, const sourcepp::parser::text::EscapeSequenceMap &escapeSequences) |
|
inlineexplicit |
|
protected |
|
protected |