NCBI C++ ToolKit
Functions | Variables
ns_util.hpp File Reference
#include "ns_types.hpp"
#include <corelib/ncbistl.hpp>
#include <corelib/ncbireg.hpp>
+ Include dependency graph for ns_util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

string NS_RegValName (const string &section, const string &entry)
 
bool NS_ValidateDouble (const IRegistry &reg, const string &section, const string &entry, vector< string > &warnings)
 
bool NS_ValidateBool (const IRegistry &reg, const string &section, const string &entry, vector< string > &warnings)
 
bool NS_ValidateInt (const IRegistry &reg, const string &section, const string &entry, vector< string > &warnings)
 
bool NS_ValidateString (const IRegistry &reg, const string &section, const string &entry, vector< string > &warnings)
 
bool NS_ValidateDataSize (const IRegistry &reg, const string &section, const string &entry, vector< string > &warnings)
 
unsigned int NS_GetDataSize (const IRegistry &reg, const string &section, const string &entry, unsigned int default_val)
 
void NS_ValidateConfigFile (const IRegistry &reg, vector< string > &warnings, bool throw_port_exception, bool &decrypting_error)
 
string NS_GetConfigFileChecksum (const string &file_name, vector< string > &warnings)
 

Variables

const string g_ValidPrefix = "Validating config file: "
 
const string g_WarnPrefix = g_ValidPrefix + "unexpected value of "
 

Function Documentation

◆ NS_GetConfigFileChecksum()

string NS_GetConfigFileChecksum ( const string file_name,
vector< string > &  warnings 
)

◆ NS_GetDataSize()

unsigned int NS_GetDataSize ( const IRegistry reg,
const string section,
const string entry,
unsigned int  default_val 
)

◆ NS_RegValName()

string NS_RegValName ( const string section,
const string entry 
)

Definition at line 83 of file ns_util.cpp.

Referenced by NS_OutOfLimitMessage(), NS_ValidateBool(), NS_ValidateDataSize(), NS_ValidateDouble(), NS_ValidateInt(), NS_ValidateRegistrySettings(), NS_ValidateServerSection(), NS_ValidateServiceToQueueSection(), NS_ValidateString(), SQueueParameters::ReadBlacklistTime(), SQueueParameters::ReadClientRegistryMinAdmins(), SQueueParameters::ReadClientRegistryMinReaders(), SQueueParameters::ReadClientRegistryMinSubmitters(), SQueueParameters::ReadClientRegistryMinUnknowns(), SQueueParameters::ReadClientRegistryMinWorkerNodes(), SQueueParameters::ReadClientRegistryTimeoutAdmin(), SQueueParameters::ReadClientRegistryTimeoutReader(), SQueueParameters::ReadClientRegistryTimeoutSubmitter(), SQueueParameters::ReadClientRegistryTimeoutUnknown(), SQueueParameters::ReadClientRegistryTimeoutWorkerNode(), SQueueParameters::ReadDescription(), SQueueParameters::ReadDumpAffBufferSize(), SQueueParameters::ReadDumpBufferSize(), SQueueParameters::ReadDumpClientBufferSize(), SQueueParameters::ReadDumpGroupBufferSize(), SQueueParameters::ReadFailedRetries(), SQueueParameters::ReadLinkedSections(), SQueueParameters::ReadMaxInputSize(), SQueueParameters::ReadMaxJobsPerClient(), SQueueParameters::ReadMaxOutputSize(), SQueueParameters::ReadMaxPendingReadWaitTimeout(), SQueueParameters::ReadMaxPendingWaitTimeout(), SQueueParameters::ReadNotifHandicap(), SQueueParameters::ReadNotifHifreqInterval(), SQueueParameters::ReadNotifHifreqPeriod(), SQueueParameters::ReadNotifLofreqMult(), SQueueParameters::ReadPendingTimeout(), SQueueParameters::ReadProgram(), SQueueParameters::ReadQueue(), SQueueParameters::ReadReadBlacklistTime(), SQueueParameters::ReadReaderHosts(), SQueueParameters::ReadReaderTimeout(), SQueueParameters::ReadReadFailedRetries(), SQueueParameters::ReadReadTimeout(), SQueueParameters::ReadRunTimeout(), SQueueParameters::ReadSubmHosts(), SQueueParameters::ReadTimeout(), SQueueParameters::ReadWnodeHosts(), and SQueueParameters::ReadWnodeTimeout().

◆ NS_ValidateBool()

bool NS_ValidateBool ( const IRegistry reg,
const string section,
const string entry,
vector< string > &  warnings 
)

◆ NS_ValidateConfigFile()

void NS_ValidateConfigFile ( const IRegistry reg,
vector< string > &  warnings,
bool  throw_port_exception,
bool decrypting_error 
)

◆ NS_ValidateDataSize()

bool NS_ValidateDataSize ( const IRegistry reg,
const string section,
const string entry,
vector< string > &  warnings 
)

◆ NS_ValidateDouble()

bool NS_ValidateDouble ( const IRegistry reg,
const string section,
const string entry,
vector< string > &  warnings 
)

◆ NS_ValidateInt()

bool NS_ValidateInt ( const IRegistry reg,
const string section,
const string entry,
vector< string > &  warnings 
)

◆ NS_ValidateString()

bool NS_ValidateString ( const IRegistry reg,
const string section,
const string entry,
vector< string > &  warnings 
)

Variable Documentation

◆ g_ValidPrefix

const string g_ValidPrefix = "Validating config file: "

◆ g_WarnPrefix

const string g_WarnPrefix = g_ValidPrefix + "unexpected value of "

Definition at line 47 of file ns_util.hpp.

Referenced by NS_ValidateBool(), NS_ValidateDataSize(), NS_ValidateDouble(), NS_ValidateInt(), NS_ValidateString(), SQueueParameters::ReadBlacklistTime(), SQueueParameters::ReadClientRegistryMinAdmins(), SQueueParameters::ReadClientRegistryMinReaders(), SQueueParameters::ReadClientRegistryMinSubmitters(), SQueueParameters::ReadClientRegistryMinUnknowns(), SQueueParameters::ReadClientRegistryMinWorkerNodes(), SQueueParameters::ReadClientRegistryTimeoutAdmin(), SQueueParameters::ReadClientRegistryTimeoutReader(), SQueueParameters::ReadClientRegistryTimeoutSubmitter(), SQueueParameters::ReadClientRegistryTimeoutUnknown(), SQueueParameters::ReadClientRegistryTimeoutWorkerNode(), SQueueParameters::ReadDescription(), SQueueParameters::ReadDumpAffBufferSize(), SQueueParameters::ReadDumpBufferSize(), SQueueParameters::ReadDumpClientBufferSize(), SQueueParameters::ReadDumpGroupBufferSize(), SQueueParameters::ReadFailedRetries(), SQueueParameters::ReadLinkedSections(), SQueueParameters::ReadMaxInputSize(), SQueueParameters::ReadMaxJobsPerClient(), SQueueParameters::ReadMaxOutputSize(), SQueueParameters::ReadMaxPendingReadWaitTimeout(), SQueueParameters::ReadMaxPendingWaitTimeout(), SQueueParameters::ReadNotifHandicap(), SQueueParameters::ReadNotifHifreqInterval(), SQueueParameters::ReadNotifHifreqPeriod(), SQueueParameters::ReadNotifLofreqMult(), SQueueParameters::ReadPendingTimeout(), SQueueParameters::ReadProgram(), SQueueParameters::ReadQueue(), SQueueParameters::ReadReadBlacklistTime(), SQueueParameters::ReadReaderHosts(), SQueueParameters::ReadReaderTimeout(), SQueueParameters::ReadReadFailedRetries(), SQueueParameters::ReadReadTimeout(), SQueueParameters::ReadRunTimeout(), SQueueParameters::ReadSubmHosts(), SQueueParameters::ReadTimeout(), SQueueParameters::ReadWnodeHosts(), and SQueueParameters::ReadWnodeTimeout().

Modified on Tue Jul 23 17:54:34 2024 by modify_doxy.py rev. 669887