NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions | Variables
ncbi_config.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <corelib/ncbi_config.hpp>
#include <corelib/ncbidll.hpp>
#include <corelib/ncbireg.hpp>
#include <corelib/error_codes.hpp>
#include <algorithm>
#include <memory>
#include <set>
+ Include dependency graph for ncbi_config.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SNodeNameUpdater
 

Macros

#define NCBI_USE_ERRCODE_X   Corelib_Config
 

Typedefs

typedef CConfig::TParamTree TParamTree
 
typedef CConfig::TParamValue TParamValue
 
typedef map< TParamTree *, set< string > > TSectionMap
 

Functions

template<class ResultSet >
void s_List2Set (const list< string > &src, ResultSet *dst)
 
static bool s_IsSubNode (const string &str)
 
static void s_AddOrReplaceSubNode (TParamTree *node_ptr, const string &element_name, const string &element_value)
 
static TParamTrees_FindSubNode (const string &path, TParamTree *tree_root)
 
static void s_ParseSubNodes (const string &sub_nodes, TParamTree *parent_node, TSectionMap &inc_sections, set< string > &rm_sections)
 
static bool s_IsParentNode (TParamTree *parent, TParamTree *child)
 
static void s_IncludeNode (TParamTree *parent_node, const TParamTree *inc_node)
 
static void s_ExpandSubNodes (TSectionMap &inc_sections, TParamTree *tree_root, TParamTree *node)
 
static void x_Print (const CConfig::TParamTree *tree, const string &section)
 

Variables

static const char * kSubNode = ".SubNode"
 
static const char * kSubSection = ".SubSection"
 
static const char * kNodeName = ".NodeName"
 
static const char * kIncludeSections = ".Include"
 

Macro Definition Documentation

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Corelib_Config

Definition at line 46 of file ncbi_config.cpp.

Typedef Documentation

◆ TParamTree

Definition at line 80 of file ncbi_config.cpp.

◆ TParamValue

Definition at line 81 of file ncbi_config.cpp.

◆ TSectionMap

Definition at line 82 of file ncbi_config.cpp.

Function Documentation

◆ s_AddOrReplaceSubNode()

static void s_AddOrReplaceSubNode ( TParamTree node_ptr,
const string element_name,
const string element_value 
)
static

◆ s_ExpandSubNodes()

static void s_ExpandSubNodes ( TSectionMap inc_sections,
TParamTree tree_root,
TParamTree node 
)
static

◆ s_FindSubNode()

static TParamTree* s_FindSubNode ( const string path,
TParamTree tree_root 
)
static

◆ s_IncludeNode()

static void s_IncludeNode ( TParamTree parent_node,
const TParamTree inc_node 
)
static

◆ s_IsParentNode()

static bool s_IsParentNode ( TParamTree parent,
TParamTree child 
)
static

Definition at line 144 of file ncbi_config.cpp.

References CTreeNode< TValue, TKeyGetterP >::GetParent().

Referenced by s_ExpandSubNodes().

◆ s_IsSubNode()

static bool s_IsSubNode ( const string str)
static

Definition at line 68 of file ncbi_config.cpp.

References NStr::CompareNocase(), kSubNode, kSubSection, and str().

Referenced by CConfig::ConvertRegToTree().

◆ s_List2Set()

template<class ResultSet >
void s_List2Set ( const list< string > &  src,
ResultSet *  dst 
)

Definition at line 59 of file ncbi_config.cpp.

References ITERATE.

Referenced by CConfig::ConvertRegToTree(), and s_ParseSubNodes().

◆ s_ParseSubNodes()

static void s_ParseSubNodes ( const string sub_nodes,
TParamTree parent_node,
TSectionMap inc_sections,
set< string > &  rm_sections 
)
static

◆ x_Print()

static void x_Print ( const CConfig::TParamTree tree,
const string section 
)
static

Definition at line 242 of file ncbi_config.cpp.

Referenced by CConfig::ConvertRegToTree().

Variable Documentation

◆ kIncludeSections

const char* kIncludeSections = ".Include"
static

Definition at line 55 of file ncbi_config.cpp.

Referenced by CConfig::ConvertRegToTree().

◆ kNodeName

const char* kNodeName = ".NodeName"
static

Definition at line 54 of file ncbi_config.cpp.

Referenced by CConfig::ConvertRegToTree(), and SNodeNameUpdater::operator()().

◆ kSubNode

const char* kSubNode = ".SubNode"
static

Definition at line 52 of file ncbi_config.cpp.

Referenced by s_IsSubNode().

◆ kSubSection

const char* kSubSection = ".SubSection"
static

Definition at line 53 of file ncbi_config.cpp.

Referenced by s_IsSubNode().

Modified on Fri Sep 20 14:58:30 2024 by modify_doxy.py rev. 669887