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

Public Member Functions | |
| 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. | |
| std::string_view | getValue () const |
| Get the value associated with the element. | |
| template<BSPEntityKeyValueType V> | |
| V | getValue () const |
| Get the value associated with the element as the given type. | |
| template<BSPEntityKeyValueType V> | |
| void | setValue (V value_) |
| Set the value associated with the element. | |
| template<BSPEntityKeyValueType V> | |
| Element & | operator= (V value_) |
| Set the value associated with the element. | |
| bool | isInvalid () const |
| Check if the given element is invalid. | |
Protected Member Functions | |
| Element ()=default | |
Static Protected Member Functions | |
| static const Element & | getInvalid () |
Protected Attributes | |
| std::string | key |
| std::string | value |
Friends | |
| class | BSPEntityKeyValues |
Definition at line 24 of file EntityLump.h.
|
protecteddefault |
|
staticprotected |
Definition at line 22 of file EntityLump.cpp.
|
nodiscard |
Get the key associated with the element.
Definition at line 6 of file EntityLump.cpp.
|
inlinenodiscard |
Get the value associated with the element as the given type.
Definition at line 39 of file EntityLump.h.
|
nodiscard |
Get the value associated with the element.
Definition at line 14 of file EntityLump.cpp.
|
nodiscard |
Check if the given element is invalid.
Definition at line 18 of file EntityLump.cpp.
|
inline |
Set the value associated with the element.
Definition at line 68 of file EntityLump.h.
| void BSPEntityKeyValues::Element::setKey | ( | std::string_view | key_ | ) |
Set the key associated with the element.
Definition at line 10 of file EntityLump.cpp.
|
inline |
Set the value associated with the element.
Definition at line 56 of file EntityLump.h.
|
friend |
Definition at line 25 of file EntityLump.h.
|
protected |
Definition at line 81 of file EntityLump.h.
|
protected |
Definition at line 82 of file EntityLump.h.