NCBI C++ ToolKit
Public Types | Static Public Member Functions | List of all members
CParamParser< TDescription, TParam > Class Template Reference

Search Toolkit Book for CParamParser

CParamParser. More...

#include <corelib/ncbi_param.hpp>

Public Types

typedef TDescription TParamDesc
 
typedef TDescription::TValueType TValueType
 

Static Public Member Functions

static TValueType StringToValue (const string &str, const TParamDesc &descr)
 
static string ValueToString (const TValueType &val, const TParamDesc &descr)
 

Detailed Description

template<class TDescription, class TParam>
class CParamParser< TDescription, TParam >

CParamParser.

Parameter parser template.

Used to read parameter value from registry/environment. Default implementation requires TValue to be readable from and writable to a stream. Optimized specializations exist for string and bool types. The template is also specialized for each enum parameter.

Definition at line 418 of file ncbi_param.hpp.

Member Typedef Documentation

template<class TDescription, class TParam>
typedef TDescription CParamParser< TDescription, TParam >::TParamDesc

Definition at line 421 of file ncbi_param.hpp.

template<class TDescription, class TParam>
typedef TDescription::TValueType CParamParser< TDescription, TParam >::TValueType

Definition at line 422 of file ncbi_param.hpp.

Member Function Documentation

template<class TDescription , class TParam >
EMPTY_TEMPLATE CParamParser< SParamDescription< double >, double >::TValueType CParamParser< TDescription, TParam >::StringToValue ( const string str,
const TParamDesc descr 
)
inlinestatic

Definition at line 214 of file ncbi_param_impl.hpp.

References in(), NCBI_THROW, and val.

template<class TDescription , class TParam >
EMPTY_TEMPLATE string CParamParser< TDescription, TParam >::ValueToString ( const TValueType val,
const TParamDesc descr 
)
inlinestatic

Definition at line 233 of file ncbi_param_impl.hpp.

References buffer, and val.


The documentation for this class was generated from the following files:
Modified on Thu Apr 28 18:13:01 2016 by modify_doxy.py rev. 426318