xdrpp
RFC4506 XDR compiler and message library
|
Set of callbacks to run when parsing properties within a particular group. More...
#include <iniparse.h>
Public Types | |
using | cb_t = std::function< void(const IniLine &li)> |
Public Member Functions | |
IniGroup & | operator= (const IniGroup &&)=delete |
void | parse (const IniLine &li) |
IniGroup & | add (const string &key, cb_t &&cb) |
Add an explicit callback for a particular key. | |
IniGroup & | add (const string &key, const cb_t &cb) |
template<typename T > | |
IniGroup & | add (const string &key, T *valp) |
Construct a callback that places the parced value in valp . | |
template<typename T , typename ... Rest> | |
IniGroup & | add (const string &key, T &&valp, const string &key2, Rest...rest) |
A convenience allowing add(field, callback, field, callback...) . | |
Public Attributes | |
std::unordered_map< string, cb_t > | cbs_ |
Set of callbacks to run when parsing properties within a particular group.
Definition at line 96 of file iniparse.h.