NCBI C++ ToolKit
|
#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>
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 TParamTree * | s_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 §ion) |
Variables | |
static const char * | kSubNode = ".SubNode" |
static const char * | kSubSection = ".SubSection" |
static const char * | kNodeName = ".NodeName" |
static const char * | kIncludeSections = ".Include" |
#define NCBI_USE_ERRCODE_X Corelib_Config |
Definition at line 46 of file ncbi_config.cpp.
typedef CConfig::TParamTree TParamTree |
Definition at line 80 of file ncbi_config.cpp.
typedef CConfig::TParamValue TParamValue |
Definition at line 81 of file ncbi_config.cpp.
typedef map<TParamTree*, set<string> > TSectionMap |
Definition at line 82 of file ncbi_config.cpp.
|
static |
Definition at line 85 of file ncbi_config.cpp.
References CTreeNode< TValue, TKeyGetterP >::AddNode(), CTreeNode< TValue, TKeyGetterP >::eImmediateSubNodes, CTreeNode< TValue, TKeyGetterP >::FindNode(), and CTreeNode< TValue, TKeyGetterP >::GetValue().
Referenced by CConfig::ConvertRegToTree().
|
static |
Definition at line 179 of file ncbi_config.cpp.
References _TRACE, map_checker< Container >::begin(), map_checker< Container >::end(), map_checker< Container >::erase(), Error(), map_checker< Container >::find(), CTreeNode< TValue, TKeyGetterP >::GetKey(), ITERATE, s_FindSubNode(), s_IncludeNode(), s_IsParentNode(), CTreeNode< TValue, TKeyGetterP >::SubNodeBegin(), and CTreeNode< TValue, TKeyGetterP >::SubNodeEnd().
Referenced by CConfig::ConvertRegToTree().
|
static |
Definition at line 102 of file ncbi_config.cpp.
References CTreeNode< TValue, TKeyGetterP >::FindNodes(), NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, and NStr::Split().
Referenced by CConfig::ConvertRegToTree(), and s_ExpandSubNodes().
|
static |
Definition at line 158 of file ncbi_config.cpp.
References CTreeNode< TValue, TKeyGetterP >::AddNode(), CTreeNode< TValue, TKeyGetterP >::FindSubNode(), CTreeNode< TValue, TKeyGetterP >::SubNodeBegin(), and CTreeNode< TValue, TKeyGetterP >::SubNodeEnd().
Referenced by s_ExpandSubNodes().
|
static |
Definition at line 144 of file ncbi_config.cpp.
References CTreeNode< TValue, TKeyGetterP >::GetParent().
Referenced by s_ExpandSubNodes().
Definition at line 68 of file ncbi_config.cpp.
References NStr::CompareNocase(), kSubNode, kSubSection, and str().
Referenced by CConfig::ConvertRegToTree().
Definition at line 59 of file ncbi_config.cpp.
References ITERATE.
Referenced by CConfig::ConvertRegToTree(), and s_ParseSubNodes().
|
static |
Definition at line 116 of file ncbi_config.cpp.
References CTreeNode< TValue, TKeyGetterP >::AddNode(), NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, CTreeNode< TValue, TKeyGetterP >::GetKeyEqual(), map_checker< Container >::insert(), set< Key, Compare >::insert(), ITERATE, s_List2Set(), and NStr::Split().
Referenced by CConfig::ConvertRegToTree().
|
static |
Definition at line 242 of file ncbi_config.cpp.
Referenced by CConfig::ConvertRegToTree().
|
static |
Definition at line 55 of file ncbi_config.cpp.
Referenced by CConfig::ConvertRegToTree().
|
static |
Definition at line 54 of file ncbi_config.cpp.
Referenced by CConfig::ConvertRegToTree(), and SNodeNameUpdater::operator()().
|
static |
Definition at line 52 of file ncbi_config.cpp.
Referenced by s_IsSubNode().
|
static |
Definition at line 53 of file ncbi_config.cpp.
Referenced by s_IsSubNode().