|
| virtual | ~IArchive ()=default |
| |
| virtual PEAK_COMMON_NO_DISCARD std::shared_ptr< IArchive > | CreateArchive () const =0 |
| | Creates a new, empty archive instance.
|
| |
| virtual PEAK_COMMON_NO_DISCARD bool | HasKey (const std::string &key) const =0 |
| | Checks whether a given key exists in the archive.
|
| |
| virtual PEAK_COMMON_NO_DISCARD ValueType | GetValueType (const std::string &key) const =0 |
| | Retrieves the value type associated with a key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::vector< std::string > | GetKeys () const =0 |
| | Returns a list of all keys currently stored in the archive.
|
| |
| virtual PEAK_COMMON_NO_DISCARD size_t | GetArrayCount (const std::string &key) const =0 |
| | Gets the number of elements in an array stored under the given key.
|
| |
| virtual void | SetBool (const std::string &key, bool value)=0 |
| | Stores a boolean value.
|
| |
| virtual void | SetInt (const std::string &key, int64_t value)=0 |
| | Stores a 64-bit signed integer.
|
| |
| virtual void | SetDouble (const std::string &key, double value)=0 |
| | Stores a double-precision floating point number.
|
| |
| virtual void | SetString (const std::string &key, const std::string &value)=0 |
| | Stores a UTF-8 string.
|
| |
| virtual void | SetArchive (const std::string &key, const std::shared_ptr< IArchive > &value)=0 |
| | Stores a nested archive object.
|
| |
| virtual void | SetBoolArray (const std::string &key, const std::vector< bool > &value)=0 |
| | Stores an array of boolean values.
|
| |
| virtual void | SetIntArray (const std::string &key, const std::vector< int64_t > &value)=0 |
| | Stores an array of 64-bit integers.
|
| |
| virtual void | SetDoubleArray (const std::string &key, const std::vector< double > &value)=0 |
| | Stores an array of doubles.
|
| |
| virtual void | SetStringArray (const std::string &key, const std::vector< std::string > &value)=0 |
| | Stores an array of strings.
|
| |
| virtual void | SetArchiveArray (const std::string &key, const std::vector< std::shared_ptr< IArchive > > &value)=0 |
| | Stores an array of nested archives.
|
| |
| virtual PEAK_COMMON_NO_DISCARD bool | GetBool (const std::string &key) const =0 |
| | Retrieves a boolean value by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD int64_t | GetInt (const std::string &key) const =0 |
| | Retrieves a 64-bit signed integer by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD double | GetDouble (const std::string &key) const =0 |
| | Retrieves a double-precision number by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::string | GetString (const std::string &key) const =0 |
| | Retrieves a string value by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::shared_ptr< IArchive > | GetArchive (const std::string &key) const =0 |
| | Retrieves a nested archive by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::vector< bool > | GetBoolArray (const std::string &key) const =0 |
| | Retrieves an array of booleans by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::vector< int64_t > | GetIntArray (const std::string &key) const =0 |
| | Retrieves an array of integers by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::vector< double > | GetDoubleArray (const std::string &key) const =0 |
| | Retrieves an array of doubles by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::vector< std::string > | GetStringArray (const std::string &key) const =0 |
| | Retrieves an array of strings by key.
|
| |
| virtual PEAK_COMMON_NO_DISCARD std::vector< std::shared_ptr< IArchive > > | GetArchiveArray (const std::string &key) const =0 |
| | Retrieves an array of nested archives by key.
|
| |
Interface for a hierarchical key-value archive system.
Provides methods for storing and retrieving structured data of various types, including primitive values, arrays, and nested archives.
This interface is suitable for serialization and deserialization purposes.
- Since
- ids_peak_common 1.0