Conf reader instance handle. More...
#include <reader.hpp>
Public Member Functions | |
| Reader (const filesystem::path &filePath) | |
| Creates a new Conf file reader instance. | |
| Reader (const char *data) | |
| Creates a new Conf data reader instance. | |
| ~Reader () | |
| Destroys Conf reader instance. | |
| bool | getType (const string &key, ConfDataType &type) const noexcept |
| Returns the type of value by key. | |
| bool | get (const string &key, int64_t &value) const noexcept |
| Returns the integer value by key. (int64). | |
| bool | get (const string &key, int32_t &value) const noexcept |
| Returns the integer value by key. (int32). | |
| bool | get (const string &key, uint32_t &value) const noexcept |
| Returns the integer value by key. (uint32). | |
| bool | get (const string &key, int16_t &value) const noexcept |
| Returns the integer value by key. (int16). | |
| bool | get (const string &key, uint16_t &value) const noexcept |
| Returns the integer value by key. (uint16). | |
| bool | get (const string &key, int8_t &value) const noexcept |
| Returns the integer value by key. (int8). | |
| bool | get (const string &key, uint8_t &value) const noexcept |
| Returns the integer value by key. (uint8). | |
| bool | get (const string &key, double &value) const noexcept |
| Returns the floating value by key. (double). | |
| bool | get (const string &key, float &value) const noexcept |
| Returns the floating value by key. (float). | |
| bool | get (const string &key, bool &value) const noexcept |
| Returns the boolean value by key. | |
| bool | get (const string &key, string_view &value) const noexcept |
| Returns the string value by key. | |
| bool | get (const string &key, string &value) const noexcept |
| Returns the string value by key. | |
Conf reader instance handle.
See the reader.h
|
inline |
Creates a new Conf file reader instance.
See the createFileConfReader().
| [in] | filePath | target Conf file path string |
| Error | with a ConfResult string and line number on failure. |
|
inline |
Creates a new Conf data reader instance.
See the createDataConfReader().
| [in] | data | target Conf data string |
| Error | with a ConfResult string and line number on failure. |
|
inline |
Destroys Conf reader instance.
See the destroyConfReader().
|
inlinenoexcept |
Returns the type of value by key.
See the getConfReaderType().
| [in] | key | target item key string |
| [out] | type | reference to the value type |
Returns the integer value by key. (int64).
See the getConfReaderInt().
| [in] | key | target item key string |
| [out] | value | reference to the integer value |
Returns the integer value by key. (int32).
See the getConfReaderInt().
| [in] | key | target item key string |
| [out] | value | reference to the integer value |
Returns the integer value by key. (uint32).
See the getConfReaderInt().
| [in] | key | target item key string |
| [out] | value | reference to the integer value |
Returns the integer value by key. (int16).
See the getConfReaderInt().
| [in] | key | target item key string |
| [out] | value | reference to the integer value |
Returns the integer value by key. (uint16).
See the getConfReaderInt().
| [in] | key | target item key string |
| [out] | value | reference to the integer value |
Returns the integer value by key. (int8).
See the getConfReaderInt().
| [in] | key | target item key string |
| [out] | value | reference to the integer value |
Returns the integer value by key. (uint8).
See the getConfReaderInt().
| [in] | key | target item key string |
| [out] | value | reference to the integer value |
|
inlinenoexcept |
Returns the floating value by key. (double).
See the getConfReaderFloat().
| [in] | key | target item key string |
| [out] | value | reference to the floating value |
|
inlinenoexcept |
Returns the floating value by key. (float).
See the getConfReaderFloat().
| [in] | key | target item key string |
| [out] | value | reference to the floating value |
|
inlinenoexcept |
Returns the boolean value by key.
See the getConfReaderBool().
| [in] | key | target item key string |
| [out] | value | reference to the boolean value |
|
inlinenoexcept |
Returns the string value by key.
See the getConfReaderString().
| [in] | key | target item key string |
| [out] | value | reference to the string value |
Returns the string value by key.
See the getConfReaderString().
| [in] | key | target item key string |
| [out] | value | reference to the string value |