Read JSON, YAML, TOML, XML or INI configuration by declaring a struct
figcone::Config
base class and macros. (requires C++20)
Readme
figcone::RootType::NodeList
value as the second template argument of the figcone::ConfigReader
read methods:auto cfgList = cfgReader.readYamlFile<PhotoViewerCfg, figcone::RootType::NodeList>("cfg.yaml"); // cfgList type is std::vector<PhotoViewerCfg>
_list="1"
attribute, and their child elements don't have to be named as _
. These constraints were previously necessary due to the inability in XML format to distinguish between a node with a single child node and a list with a single element:<box>
<child/>
</box>
Now, the
<figcone/figcone.h>
header that contains all necessary includes.nameof
library by default. (FIGCONE_USE_NAMEOF
is enabled by default)figcone_tree
to v1.0.1 (Fixed #10)figcone_shoal
to v0.6.1figcone_shoal
to v0.6.0sfun
to v4.0.0;figcone_shoal
to v0.4.0Maintenance
sfun
to 3.1.1SealLake_IsInstalled
CMake function to only install dependencies when figcone
is installedsfun
and figcone_shoal
librariesconvertFromString
function from the figcone_tree
to the figcone
, made it handle ValidationError
exceptions. Added information from ValidationError
exceptions to the StringConverter
error messages. (example)