xdrpp
RFC4506 XDR compiler and message library
Public Types | Public Member Functions | Public Attributes | List of all members
xdr::IniGroup Struct Reference

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

IniGroupoperator= (const IniGroup &&)=delete
 
void parse (const IniLine &li)
 
IniGroupadd (const string &key, cb_t &&cb)
 Add an explicit callback for a particular key.
 
IniGroupadd (const string &key, const cb_t &cb)
 
template<typename T >
IniGroupadd (const string &key, T *valp)
 Construct a callback that places the parced value in valp.
 
template<typename T , typename ... Rest>
IniGroupadd (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_
 

Detailed Description

Set of callbacks to run when parsing properties within a particular group.

Definition at line 96 of file iniparse.h.


The documentation for this struct was generated from the following files: