Scarab  v3.5.1
Project 8 C++ Utility Library
Static Public Member Functions | Static Public Attributes | Static Private Member Functions | List of all members
simple_parser Struct Reference

#include <param_helpers.hh>

Static Public Member Functions

static param_ptr_t parse_address (const std::string &an_addr, param_ptr_t a_value=param_ptr_t())
 Converts an address into a nested param structure, and optionally attaches a value. More...
 
static param_ptr_t parse_value (const std::string &a_value)
 Attempts to determine whether a value encoded as a string is an int, and unsigned int, or a floating-point number. More...
 

Static Public Attributes

static const char f_node_separator = '.'
 

Static Private Member Functions

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())
 
static param_ptr_t new_param_from_addr (const std::string &an_addr)
 

Detailed Description

Definition at line 15 of file param_helpers.hh.

Member Function Documentation

◆ add_next()

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() 
)
staticprivate

Definition at line 43 of file param_helpers.cc.

◆ new_param_from_addr()

param_ptr_t new_param_from_addr ( const std::string &  an_addr)
staticprivate

Definition at line 93 of file param_helpers.cc.

◆ parse_address()

param_ptr_t parse_address ( const std::string &  an_addr,
param_ptr_t  a_value = param_ptr_t() 
)
static

Converts an address into a nested param structure, and optionally attaches a value.

Definition at line 18 of file param_helpers.cc.

◆ parse_value()

param_ptr_t parse_value ( const std::string &  a_value)
static

Attempts to determine whether a value encoded as a string is an int, and unsigned int, or a floating-point number.

Definition at line 107 of file param_helpers.cc.

Member Data Documentation

◆ f_node_separator

const char f_node_separator = '.'
static

Definition at line 30 of file param_helpers.hh.


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