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

Search Toolkit Book for CNSStartIDs

#include "ns_start_ids.hpp"
(Private to src/app/netschedule.)

+ Collaboration diagram for CNSStartIDs:

Public Member Functions

 CNSStartIDs (const string &data_dir_name, bool diskless)
 
 ~CNSStartIDs ()
 
void Set (const string &qname, unsigned int value)
 
unsigned int Get (const string &qname)
 
void Serialize (void) const
 
void Load (void)
 

Private Types

typedef map< string, unsigned int, PNocaseTStartIDs
 

Private Member Functions

void x_SerializeNoLock (void) const
 

Private Attributes

string m_FileName
 
bool m_Diskless
 
CFastMutex m_Lock
 
TStartIDs m_IDs
 

Detailed Description

Definition at line 49 of file ns_start_ids.hpp.

Member Typedef Documentation

◆ TStartIDs

typedef map< string, unsigned int, PNocase > CNSStartIDs::TStartIDs
private

Definition at line 51 of file ns_start_ids.hpp.

Constructor & Destructor Documentation

◆ CNSStartIDs()

CNSStartIDs::CNSStartIDs ( const string data_dir_name,
bool  diskless 
)

Definition at line 45 of file ns_start_ids.cpp.

References kStartJobIDsFileName(), m_FileName, and CDirEntry::MakePath().

◆ ~CNSStartIDs()

CNSStartIDs::~CNSStartIDs ( )

Definition at line 53 of file ns_start_ids.cpp.

Member Function Documentation

◆ Get()

unsigned int CNSStartIDs::Get ( const string qname)

Definition at line 78 of file ns_start_ids.cpp.

References m_Diskless, m_IDs, m_Lock, and x_SerializeNoLock().

Referenced by CNetScheduleServer::GetJobsStartID().

◆ Load()

void CNSStartIDs::Load ( void  )

◆ Serialize()

void CNSStartIDs::Serialize ( void  ) const

Definition at line 96 of file ns_start_ids.cpp.

References m_Diskless, m_Lock, and x_SerializeNoLock().

Referenced by CNetScheduleServer::SerializeJobsStartIDs().

◆ Set()

void CNSStartIDs::Set ( const string qname,
unsigned int  value 
)

◆ x_SerializeNoLock()

void CNSStartIDs::x_SerializeNoLock ( void  ) const
private

Definition at line 153 of file ns_start_ids.cpp.

References ERR_POST, f(), m_Diskless, m_FileName, m_IDs, and NULL.

Referenced by Get(), Serialize(), and Set().

Member Data Documentation

◆ m_Diskless

bool CNSStartIDs::m_Diskless
private

Definition at line 69 of file ns_start_ids.hpp.

Referenced by Get(), Load(), Serialize(), Set(), and x_SerializeNoLock().

◆ m_FileName

string CNSStartIDs::m_FileName
private

Definition at line 68 of file ns_start_ids.hpp.

Referenced by CNSStartIDs(), Load(), and x_SerializeNoLock().

◆ m_IDs

TStartIDs CNSStartIDs::m_IDs
private

Definition at line 71 of file ns_start_ids.hpp.

Referenced by Get(), Load(), Set(), and x_SerializeNoLock().

◆ m_Lock

CFastMutex CNSStartIDs::m_Lock
mutableprivate

Definition at line 70 of file ns_start_ids.hpp.

Referenced by Get(), Serialize(), and Set().


The documentation for this class was generated from the following files:
Modified on Fri Jun 14 16:51:20 2024 by modify_doxy.py rev. 669887