inicpp
C++ parser of INI files with schema validation.
inicpp::option_schema_params< ArgType > Class Template Reference

#include <option_schema.h>

+ Inheritance diagram for inicpp::option_schema_params< ArgType >:

Public Attributes

std::function< bool(ArgType)> validator = nullptr
 
std::string name
 
item_requirement requirement = item_requirement::mandatory
 
option_item type = option_item::single
 
std::string default_value = ""
 
std::string comment = ""
 

Detailed Description

template<typename ArgType>
class inicpp::option_schema_params< ArgType >

Extended struct which adds type of the option (as template argument) and holds in addition to parent functor for value validation.

Definition at line 43 of file option_schema.h.

Member Data Documentation

std::string inicpp::option_schema_params_base::comment = ""
inherited

Description of option

Definition at line 35 of file option_schema.h.

std::string inicpp::option_schema_params_base::default_value = ""
inherited

Default value of optional option

Definition at line 33 of file option_schema.h.

std::string inicpp::option_schema_params_base::name
inherited

Name of option_schema

Definition at line 27 of file option_schema.h.

item_requirement inicpp::option_schema_params_base::requirement = item_requirement::mandatory
inherited

Determines if this option is mandatory or not

Definition at line 29 of file option_schema.h.

option_item inicpp::option_schema_params_base::type = option_item::single
inherited

True if list has to be stored in option

Definition at line 31 of file option_schema.h.

template<typename ArgType>
std::function<bool(ArgType)> inicpp::option_schema_params< ArgType >::validator = nullptr

Validating function - takes one argument of ArgType and returns bool if valid or not

Definition at line 53 of file option_schema.h.


The documentation for this class was generated from the following file: