src/corelib/ncbireg.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbireg.hpp>
#include <corelib/env_reg.hpp>
#include <corelib/metareg.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbimtx.hpp>
#include <corelib/error_codes.hpp>
#include <algorithm>
#include <set>

Include dependency graph for ncbireg.cpp:

Go to the source code of this file.

Defines

#define NCBI_USE_ERRCODE_X   Corelib_Reg

Typedefs

typedef CRegistryReadGuard TReadGuard
typedef CRegistryWriteGuard TWriteGuard

Functions

bool s_IsNameSectionSymbol (char ch, IRegistry::TFlags flags)
static bool s_IsNameSection (const string &str, IRegistry::TFlags flags)
static const string s_ConvertComment (const string &comment, bool is_file_comment=false)
static bool s_WriteComment (CNcbiOstream &os, const string &comment)
bool s_Backslashed (const string &s, SIZE_TYPE pos)
string s_FlatKey (const string &section, const string &name)


Define Documentation

#define NCBI_USE_ERRCODE_X   Corelib_Reg
 

Definition at line 48 of file ncbireg.cpp.


Typedef Documentation

typedef CRegistryReadGuard TReadGuard
 

Definition at line 53 of file ncbireg.cpp.

typedef CRegistryWriteGuard TWriteGuard
 

Definition at line 54 of file ncbireg.cpp.


Function Documentation

bool s_Backslashed const string &  s,
SIZE_TYPE  pos
[inline]
 

Definition at line 133 of file ncbireg.cpp.

static const string s_ConvertComment const string &  comment,
bool  is_file_comment = false
[static]
 

Definition at line 83 of file ncbireg.cpp.

References kEmptyStr, NPOS, and pos.

Referenced by IRWRegistry::Set().

string s_FlatKey const string &  section,
const string &  name
[inline]
 

Definition at line 142 of file ncbireg.cpp.

Referenced by CCompoundRWRegistry::x_Enumerate(), CCompoundRWRegistry::x_Get(), CCompoundRWRegistry::x_HasEntry(), and CCompoundRWRegistry::x_Set().

static bool s_IsNameSection const string &  str,
IRegistry::TFlags  flags
[static]
 

Definition at line 67 of file ncbireg.cpp.

Referenced by IRegistry::EnumerateEntries(), IRegistry::Get(), IRegistry::GetComment(), IRegistry::HasEntry(), IRWRegistry::Set(), IRWRegistry::SetComment(), CMemoryRegistry::x_Enumerate(), and IRWRegistry::x_Read().

bool s_IsNameSectionSymbol char  ch,
IRegistry::TFlags  flags
[inline]
 

Definition at line 58 of file ncbireg.cpp.

References IRegistry::fInternalSpaces.

static bool s_WriteComment CNcbiOstream os,
const string &  comment
[static]
 

Definition at line 113 of file ncbireg.cpp.

References Endl(), ITERATE, and util::strcmp().

Referenced by IRegistry::Write().


Generated on Mon Dec 7 07:36:46 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:45 2009 by modify_doxy.py rev. 173732