TOML值抽象基类
更多...
#include <toml_value.hpp>
TOML值抽象基类
提供TOML值的统一接口,支持类型识别和字符串转换。
在文件 toml_value.hpp 第 172 行定义.
◆ types
TOML值类型枚举
| 枚举值 |
|---|
| Boolean | 布尔值类型
|
| Integer | 整数类型
|
| Float | 浮点数类型
|
| String | 字符串类型
|
| DateTime | 日期时间类型
|
| Array | 数组类型
|
| Table | 表格类型
|
在文件 toml_value.hpp 第 178 行定义.
◆ as_array()
| virtual const toml_array * toml_value::as_array |
( |
| ) |
const |
|
inlinenodiscardvirtualnoexcept |
◆ as_boolean()
| virtual const toml_boolean * toml_value::as_boolean |
( |
| ) |
const |
|
inlinenodiscardvirtualnoexcept |
◆ as_datetime()
|
|
inlinenodiscardvirtualnoexcept |
◆ as_float()
| virtual const toml_float * toml_value::as_float |
( |
| ) |
const |
|
inlinenodiscardvirtualnoexcept |
◆ as_integer()
| virtual const toml_integer * toml_value::as_integer |
( |
| ) |
const |
|
inlinenodiscardvirtualnoexcept |
◆ as_string()
| virtual const toml_string * toml_value::as_string |
( |
| ) |
const |
|
inlinenodiscardvirtualnoexcept |
◆ as_table()
| virtual const toml_table * toml_value::as_table |
( |
| ) |
const |
|
inlinenodiscardvirtualnoexcept |
◆ is_array()
| bool toml_value::is_array |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_boolean()
| bool toml_value::is_boolean |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_datetime()
| bool toml_value::is_datetime |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_float()
| bool toml_value::is_float |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_integer()
| bool toml_value::is_integer |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_string()
| bool toml_value::is_string |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_table()
| bool toml_value::is_table |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ to_document()
| string toml_value::to_document |
( |
| ) |
const |
|
nodiscard |
转换为文档格式字符串
- 返回
- TOML值的完整文档格式字符串表示
◆ to_string()
| string toml_value::to_string |
( |
| ) |
const |
|
nodiscard |
转换为紧凑格式字符串
- 返回
- TOML值的紧凑格式字符串表示
◆ type()
| virtual types toml_value::type |
( |
| ) |
const |
|
nodiscardpure virtualnoexcept |
获取TOML值类型
- 返回
- 类型枚举值
在 toml_array, toml_boolean, toml_datetime, toml_float, toml_integer, toml_string , 以及 toml_table 内被实现.
被这些函数引用 is_array(), is_boolean(), is_datetime(), is_float(), is_integer(), is_string() , 以及 is_table().
该类的文档由以下文件生成: