Scarab
v3.9.2
Project 8 C++ Utility Library
library
param
param_helpers.hh
Go to the documentation of this file.
1
/*
2
* param_helpers.hh
3
*
4
* Created on: Jan 10, 2019
5
* Author: N.S. Oblath
6
*/
7
8
#ifndef SCARAB_PARAM_HELPERS_HH_
9
#define SCARAB_PARAM_HELPERS_HH_
10
11
#include "
param.hh
"
12
13
namespace
scarab
14
{
15
struct
SCARAB_API
simple_parser
16
{
17
public
:
19
static
param_ptr_t
parse_address(
const
std::string& an_addr,
param_ptr_t
a_value =
param_ptr_t
() );
20
22
static
param_ptr_t
parse_value(
const
std::string& a_value );
23
24
private
:
25
static
void
add_next(
param
& a_parent,
const
std::string& an_addr_in_parent,
const
std::string& a_next_addr,
param_ptr_t
a_value =
param_ptr_t
() );
26
27
static
param_ptr_t
new_param_from_addr(
const
std::string& an_addr );
28
29
public
:
30
static
const
char
f_node_separator =
'.'
;
31
};
32
}
33
34
#endif
/* SCARAB_PARAM_HELPERS_HH_ */
SCARAB_API
#define SCARAB_API
Definition:
scarab_api.hh:24
scarab
Definition:
authentication.cc:18
scarab::simple_parser
Definition:
param_helpers.hh:15
param.hh
scarab::param_ptr_t
std::unique_ptr< param > param_ptr_t
Definition:
param_base.hh:23
scarab::param
Definition:
param_base.hh:26
Generated by
1.8.13