NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | List of all members
CNSTPreciseTime Class Reference

Search Toolkit Book for CNSTPreciseTime

#include "nst_precise_time.hpp"
(Private to src/app/netstorage.)

+ Inheritance diagram for CNSTPreciseTime:
+ Collaboration diagram for CNSTPreciseTime:

Public Member Functions

 CNSTPreciseTime (void)
 
 CNSTPreciseTime (time_t sec)
 
 CNSTPreciseTime (double time)
 
 CNSTPreciseTime (unsigned int sec, unsigned int nsec)
 
time_t & Sec (void)
 
time_t Sec (void) const
 
long & NSec (void)
 
long NSec (void) const
 
int Compare (const CNSTPreciseTime &t) const
 
CNSTPreciseTimeoperator+= (const CNSTPreciseTime &t)
 
CNSTPreciseTimeoperator-= (const CNSTPreciseTime &t)
 
bool operator> (const CNSTPreciseTime &t) const
 
bool operator>= (const CNSTPreciseTime &t) const
 
bool operator< (const CNSTPreciseTime &t) const
 
bool operator<= (const CNSTPreciseTime &t) const
 
 operator double () const
 

Static Public Member Functions

static CNSTPreciseTime Current (void)
 
static CNSTPreciseTime Never (void)
 

Detailed Description

Definition at line 53 of file nst_precise_time.hpp.

Constructor & Destructor Documentation

◆ CNSTPreciseTime() [1/4]

CNSTPreciseTime::CNSTPreciseTime ( void  )
inline

Definition at line 67 of file nst_precise_time.hpp.

◆ CNSTPreciseTime() [2/4]

CNSTPreciseTime::CNSTPreciseTime ( time_t  sec)
inline

Definition at line 70 of file nst_precise_time.hpp.

◆ CNSTPreciseTime() [3/4]

CNSTPreciseTime::CNSTPreciseTime ( double  time)
inline

Definition at line 73 of file nst_precise_time.hpp.

References int, and kNSecsPerSecond.

◆ CNSTPreciseTime() [4/4]

CNSTPreciseTime::CNSTPreciseTime ( unsigned int  sec,
unsigned int  nsec 
)
inline

Definition at line 76 of file nst_precise_time.hpp.

Member Function Documentation

◆ Compare()

int CNSTPreciseTime::Compare ( const CNSTPreciseTime t) const
inline

Definition at line 87 of file nst_precise_time.hpp.

References t.

Referenced by operator<(), operator<=(), operator>(), and operator>=().

◆ Current()

static CNSTPreciseTime CNSTPreciseTime::Current ( void  )
inlinestatic

Definition at line 56 of file nst_precise_time.hpp.

References result.

Referenced by CNSTTiming::Append(), CNSTDatabase::ExecSP_AddAttribute(), CNSTDatabase::ExecSP_CreateClient(), CNSTDatabase::ExecSP_CreateObjectWithClientID(), CNSTDatabase::ExecSP_CreateUser(), CNSTDatabase::ExecSP_DelAttribute(), CNSTDatabase::ExecSP_DoesObjectExist(), CNSTDatabase::ExecSP_GetAttribute(), CNSTDatabase::ExecSP_GetAttributeNames(), CNSTDatabase::ExecSP_GetClientObjects(), CNSTDatabase::ExecSP_GetClients(), CNSTDatabase::ExecSP_GetGeneralDBInfo(), CNSTDatabase::ExecSP_GetObjectExpiration(), CNSTDatabase::ExecSP_GetObjectFixedAttributes(), CNSTDatabase::ExecSP_GetObjectSize(), CNSTDatabase::ExecSP_GetObjectSizeAndLocator(), CNSTDatabase::ExecSP_GetStatDBInfo(), CNSTDatabase::ExecSP_GetUserObjects(), CNSTDatabase::ExecSP_GetUsers(), CNSTDatabase::ExecSP_RemoveObject(), CNSTDatabase::ExecSP_SetExpiration(), CNSTDatabase::ExecSP_UpdateObjectOnRead(), CNSTDatabase::ExecSP_UpdateObjectOnRelocate(), CNSTDatabase::ExecSP_UpdateObjectOnWrite(), CNSTDatabase::ExecSP_UpdateObjectSizeIfNULL(), CNSTDatabase::ExecSP_UpdateUserIDForObject(), CNSTDatabase::ExecSP_UpdateUserKeyObjectOnWrite(), CNetStorageHandler::OnRead(), CNetStorageServer::ResetDecryptCacheIfNeed(), CNSTClient::Touch(), CNSTDatabase::UpdateExpirationIfExists(), CNSTDBConnectionThread::x_CreateDatabase(), CNSTAlerts::x_IdToType(), CNetStorageHandler::x_OnData(), CNetStorageHandler::x_ProcessDelete(), CNetStorageHandler::x_ProcessExists(), CNetStorageHandler::x_ProcessGetObjectInfo(), CNetStorageHandler::x_ProcessGetSize(), CNetStorageHandler::x_ProcessLockFTPath(), CNetStorageHandler::x_ProcessRead(), CNetStorageHandler::x_ProcessRelocate(), CNSTDBConnectionThread::x_RestoreConnection(), CNetStorageHandler::x_SendOutputBuffer(), CNetStorageHandler::x_SendOverUTTP(), and CNetStorageHandler::x_SendWriteConfirmation().

◆ Never()

static CNSTPreciseTime CNSTPreciseTime::Never ( void  )
inlinestatic

Definition at line 60 of file nst_precise_time.hpp.

References kNSecsPerSecond, max(), and result.

◆ NSec() [1/2]

long& CNSTPreciseTime::NSec ( void  )
inline

Definition at line 83 of file nst_precise_time.hpp.

◆ NSec() [2/2]

long CNSTPreciseTime::NSec ( void  ) const
inline

Definition at line 85 of file nst_precise_time.hpp.

◆ operator double()

CNSTPreciseTime::operator double ( ) const
inline

Definition at line 132 of file nst_precise_time.hpp.

References kNSecsPerSecond.

◆ operator+=()

CNSTPreciseTime& CNSTPreciseTime::operator+= ( const CNSTPreciseTime t)
inline

Definition at line 100 of file nst_precise_time.hpp.

References kNSecsPerSecond, and t.

◆ operator-=()

CNSTPreciseTime& CNSTPreciseTime::operator-= ( const CNSTPreciseTime t)
inline

Definition at line 110 of file nst_precise_time.hpp.

References kNSecsPerSecond, and t.

◆ operator<()

bool CNSTPreciseTime::operator< ( const CNSTPreciseTime t) const
inline

Definition at line 127 of file nst_precise_time.hpp.

References Compare(), and t.

◆ operator<=()

bool CNSTPreciseTime::operator<= ( const CNSTPreciseTime t) const
inline

Definition at line 129 of file nst_precise_time.hpp.

References Compare(), and t.

◆ operator>()

bool CNSTPreciseTime::operator> ( const CNSTPreciseTime t) const
inline

Definition at line 123 of file nst_precise_time.hpp.

References Compare(), and t.

◆ operator>=()

bool CNSTPreciseTime::operator>= ( const CNSTPreciseTime t) const
inline

Definition at line 125 of file nst_precise_time.hpp.

References Compare(), and t.

◆ Sec() [1/2]

time_t& CNSTPreciseTime::Sec ( void  )
inline

Definition at line 79 of file nst_precise_time.hpp.

◆ Sec() [2/2]

time_t CNSTPreciseTime::Sec ( void  ) const
inline

Definition at line 81 of file nst_precise_time.hpp.


The documentation for this class was generated from the following file:
Modified on Fri Apr 12 17:20:09 2024 by modify_doxy.py rev. 669887