NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
CSynRegistry Class Reference

Search Toolkit Book for CSynRegistry

#include "netservice_params.hpp"
(Private to src/connect/services.)

+ Collaboration diagram for CSynRegistry:

Classes

class  CAlert
 
class  CInclude
 
class  CReport
 
struct  TR
 
struct  TR< const char * >
 
struct  TR< unsigned >
 

Public Types

using TPtr = shared_ptr< CSynRegistry >
 

Public Member Functions

 CSynRegistry ()
 
 ~CSynRegistry ()
 
template<typename TType >
TR< TType >::T Get (const SRegSynonyms &sections, SRegSynonyms names, TType default_value)
 
template<typename TType >
TType TGet (const SRegSynonyms &sections, SRegSynonyms names, TType default_value)
 
bool Has (const SRegSynonyms &sections, SRegSynonyms names)
 
void Add (const IRegistry &registry)
 
IRegistryGetIRegistry ()
 
void Report (ostream &os) const
 
void Alerts (ostream &os) const
 
bool AckAlert (size_t id)
 

Private Attributes

CCompoundRegistry m_Registry
 
int m_Priority = 0
 
unique_ptr< CReportm_Report
 
unique_ptr< CIncludem_Include
 
unique_ptr< CAlertm_Alert
 

Detailed Description

Definition at line 138 of file netservice_params.hpp.

Member Typedef Documentation

◆ TPtr

using CSynRegistry::TPtr = shared_ptr<CSynRegistry>

Definition at line 146 of file netservice_params.hpp.

Constructor & Destructor Documentation

◆ CSynRegistry()

CSynRegistry::CSynRegistry ( )

Definition at line 305 of file netservice_params.cpp.

◆ ~CSynRegistry()

CSynRegistry::~CSynRegistry ( )

Definition at line 312 of file netservice_params.cpp.

Member Function Documentation

◆ AckAlert()

bool CSynRegistry::AckAlert ( size_t  id)

Definition at line 337 of file netservice_params.cpp.

References m_Alert.

◆ Add()

void CSynRegistry::Add ( const IRegistry registry)

◆ Alerts()

void CSynRegistry::Alerts ( ostream &  os) const

Definition at line 332 of file netservice_params.cpp.

References m_Alert.

◆ Get()

template<typename TType >
TR<TType>::T CSynRegistry::Get ( const SRegSynonyms sections,
SRegSynonyms  names,
TType  default_value 
)
inline

Definition at line 152 of file netservice_params.hpp.

References names, and TGet().

Referenced by CNetScheduleConfigLoader::CNetScheduleConfigLoader().

◆ GetIRegistry()

IRegistry & CSynRegistry::GetIRegistry ( )

Definition at line 322 of file netservice_params.cpp.

References m_Registry.

◆ Has()

bool CSynRegistry::Has ( const SRegSynonyms sections,
SRegSynonyms  names 
)

◆ Report()

void CSynRegistry::Report ( ostream &  os) const

Definition at line 327 of file netservice_params.cpp.

References m_Report.

◆ TGet()

template<typename TType >
template double CSynRegistry::TGet ( const SRegSynonyms sections,
SRegSynonyms  names,
TType  default_value 
)

Member Data Documentation

◆ m_Alert

unique_ptr<CAlert> CSynRegistry::m_Alert
private

Definition at line 173 of file netservice_params.hpp.

Referenced by AckAlert(), Alerts(), and TGet().

◆ m_Include

unique_ptr<CInclude> CSynRegistry::m_Include
private

Definition at line 172 of file netservice_params.hpp.

Referenced by Has(), and TGet().

◆ m_Priority

int CSynRegistry::m_Priority = 0
private

Definition at line 170 of file netservice_params.hpp.

Referenced by Add(), and TGet().

◆ m_Registry

CCompoundRegistry CSynRegistry::m_Registry
private

Definition at line 169 of file netservice_params.hpp.

Referenced by Add(), GetIRegistry(), Has(), and TGet().

◆ m_Report

unique_ptr<CReport> CSynRegistry::m_Report
private

Definition at line 171 of file netservice_params.hpp.

Referenced by Report(), and TGet().


The documentation for this class was generated from the following files:
Modified on Tue Feb 27 05:50:33 2024 by modify_doxy.py rev. 669887