Class that represents a single key-value pair for TOML properties.
More...
#include <tomlutils.h>
Definition at line 69 of file tomlutils.h.
◆ Property() [1/5]
maia::io::toml::Property::Property |
( |
| ) |
|
|
default |
◆ Property() [2/5]
maia::io::toml::Property::Property |
( |
MString |
name_, |
|
|
std::vector< MString > |
data |
|
) |
| |
|
inline |
Definition at line 73 of file tomlutils.h.
std::vector< MString > m_string
◆ Property() [3/5]
maia::io::toml::Property::Property |
( |
MString |
name_, |
|
|
std::vector< MInt > |
data |
|
) |
| |
|
inline |
Definition at line 75 of file tomlutils.h.
std::vector< MInt > m_int
◆ Property() [4/5]
maia::io::toml::Property::Property |
( |
MString |
name_, |
|
|
std::vector< MFloat > |
data |
|
) |
| |
|
inline |
Definition at line 77 of file tomlutils.h.
std::vector< MFloat > m_float
◆ Property() [5/5]
maia::io::toml::Property::Property |
( |
MString |
name_, |
|
|
std::vector< MBool > |
data |
|
) |
| |
|
inline |
Definition at line 79 of file tomlutils.h.
std::vector< MBool > m_bool
◆ asBool()
const std::vector< MBool > & maia::io::toml::Property::asBool |
( |
| ) |
const |
|
inline |
Definition at line 108 of file tomlutils.h.
108 {
110 TERMM(1, "bad type");
111 }
113 }
VariableType type() const
◆ asFloat()
const std::vector< MFloat > & maia::io::toml::Property::asFloat |
( |
| ) |
const |
|
inline |
Definition at line 102 of file tomlutils.h.
102 {
104 TERMM(1, "bad type");
105 }
107 }
◆ asInt()
const std::vector< MInt > & maia::io::toml::Property::asInt |
( |
| ) |
const |
|
inline |
Definition at line 96 of file tomlutils.h.
96 {
98 TERMM(1, "bad type");
99 }
101 }
◆ asString()
const std::vector< MString > & maia::io::toml::Property::asString |
( |
| ) |
const |
|
inline |
Definition at line 90 of file tomlutils.h.
90 {
92 TERMM(1, "bad type");
93 }
95 }
◆ name()
MString maia::io::toml::Property::name |
( |
| ) |
const |
|
inline |
◆ size()
MLong maia::io::toml::Property::size |
( |
| ) |
const |
|
inline |
◆ type()
◆ type2string()
MString maia::io::toml::Property::type2string |
( |
| ) |
const |
|
inline |
Definition at line 126 of file tomlutils.h.
126 {
136 default:
137 TERMM(1,
"bad value type: " + std::to_string(
type()));
138 }
139}
◆ valid()
MBool maia::io::toml::Property::valid |
( |
| ) |
const |
|
inline |
◆ m_bool
std::vector<MBool> maia::io::toml::Property::m_bool |
|
private |
◆ m_float
std::vector<MFloat> maia::io::toml::Property::m_float |
|
private |
◆ m_int
std::vector<MInt> maia::io::toml::Property::m_int |
|
private |
◆ m_name
MString maia::io::toml::Property::m_name = "" |
|
private |
◆ m_size
MLong maia::io::toml::Property::m_size = -1 |
|
private |
◆ m_string
std::vector<MString> maia::io::toml::Property::m_string |
|
private |
◆ m_type
The documentation for this class was generated from the following file:
- /home/gitlab-runner/scratch/builds/oxpnswJ6/1/aia/m-AIA/m-AIA/src/IO/tomlutils.h