ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
LDASTools::AL Namespace Reference

The Abstraction Layer. More...

Classes

class  AtExit
 Cleanup upon exit. More...
class  BackgroundTaskCounter
class  CaseInsensitiveCmp
 Case-Insensitive Compare Functional. More...
class  CommandLineOptions
 Maintains an ordered container of unparsed command line options. More...
class  ConditionalVariable
 Thread syncronization based on condition. More...
class  Config
 Support reading and parsing of configuration streams. More...
struct  CreateUsingNew
struct  DefaultLifetime
class  Directory
 Read the contents of a directory. More...
class  ErrorLog
 Error reporting mechanism. More...
class  Exec
class  FileType
class  Fork
class  GPSTime
 GPS time class. More...
struct  hash_pointer
struct  ic_hash
 Hash proto. More...
struct  ic_hash< std::string >
 Case-Insensitive String Hash Specialization. More...
class  infix_ostream_iterator
class  IOLock
 Class to coordinate writing of streams. More...
class  Log
 Logging class. More...
class  LogCB
class  MemChecker
 Memory garbage collector. More...
class  MutexLock
 Descibes an object which release a mutex lock. More...
class  MutexLockVariable
class  Pool
 Maintain a collection system calls. More...
class  Profile
 Provide profiling information. More...
class  PSInfo
 Class to retrieve process information. More...
struct  PtrHash
class  ReadWriteLock
 Implements read/write lock symantics. More...
class  ReadWriteLockVariable
 Implements read/write lock symantics for a variable. More...
class  SignalHandler
class  Singleton
class  SingletonHolder
class  SOLoader
 Dynamic library loader. More...
class  SystemCall
 Interface for doing operating system calls. More...
class  SystemCallTask
 Perform a system call within a thread. More...
class  Task
 A unit of work to be done usually within a thread. More...
class  TaskThread
class  Thread
class  ThreadPool
 Maintains a pool of threads. More...
class  TimeoutException
class  Timer
 Give a task a maximum amount of time to complete. More...
class  TimerThread
 Keep track of threads to be run for a specified time. More...
class  TriStateInterface
 Base class for objects to be stored in the TriStatePool. More...
class  TriStatePool
 Maintain a collection system calls. More...
class  unordered_map
 Place unordered_map into General namespace. More...
class  unordered_multimap
 Place unordered_multimap into General namespace. More...
class  UserInfoCache
 Cache system information about users. More...

Typedefs

typedef LDAS_BIT_VECTOR bit_vector
 Compiler independent bit_vector.
typedef void(* SingletonExitFunction) ()
typedef CommandLineOptions::Option Option
typedef CommandLineOptions::OptionSet OptionSet
typedef CommandLineOptions::ostream ostream

Functions

class LDASTools::AL::AtExit LDASTOOLS_DEPRECATED ("use method LDASTools::AL::MemChecker instead")
void SetOffsetTableFilename (const std::string &Filename)
 Establish the filename which contains the leap seconds.
GPSTime operator+ (const GPSTime &, const double &)
 Addition operator.
GPSTime operator+ (const double &, const GPSTime &)
 Addition operator.
GPSTime operator- (const GPSTime &, const double &)
 Subtraction operator.
double operator- (const GPSTime &, const GPSTime &)
 Subtraction operator.
bool operator== (const GPSTime &, const GPSTime &)
 Equality operator.
bool operator!= (const GPSTime &, const GPSTime &)
 Inequality operator.
bool operator< (const GPSTime &, const GPSTime &)
 Less than operator.
bool operator> (const GPSTime &, const GPSTime &)
 Greater than operator.
bool operator<= (const GPSTime &, const GPSTime &)
 Less than or equal to operator.
bool operator>= (const GPSTime &, const GPSTime &)
 Greater than or equal to operator.
std::ostream & operator<< (std::ostream &Stream, const GPSTime &Time)
 Output operator.
void at_exit (SingletonExitFunction Function, const std::string &Name, int Ring)
int Timeout (Task *CallerTask, int Seconds, int &Status, bool ThrowTimeoutException=true)
template<typename T>
int Timeout (boost::shared_ptr< T > CallerTask, int Seconds, int &Status, bool ThrowTimeoutException=true)
int cmp_nocase (const std::string &S1, const std::string &S2)
 Case-Insensitve String comparison.
int cmp_nocase (const char *lhs, const char *rhs)
 Case-Insensitve String comparison.
bool is_space (const char c)
 Is character a space?
bool not_space (const char c)
 Is character a not space?
void string2lower (std::string &s)
 Convert to Lower-case.
std::string slower (const std::string &s)
void Rethrow (const std::string &Prefix, const std::exception &Exception)
 Rethrow a std::exception adding information to the front.
ErrorLog StdErrLog (std::cerr, false)
ErrorLog JournalLog (std::cerr, true)

Variables

ErrorLog StdErrLog
ErrorLog JournalLog
template<class T, template< class > class C, template< class > class L>
SingletonHolder< T, C, L >::baton_type SingletonHolder< T, C, L >::baton
template<class T, template< class > class C, template< class > class L>
SingletonHolder< T, C, L >::PtrInstanceType SingletonHolder< T, C, L >::pInstance_
template<class T, template< class > class C, template< class > class L>
bool SingletonHolder< T, C, L >::destroyed_
const int TIMEOUT_TIMED_OUT = 0x0001
const int TIMEOUT_COMPLETED = 0x0002
const std::streamoff MMAP_CHUNK = std::streamoff( 0x100000UL )
static int rw_timeout = 0

Detailed Description

The Abstraction Layer.

The classes and other objects defined in this namespace are intended to provide a unified interface across multiple platforms.

Typedef Documentation

◆ bit_vector

Compiler independent bit_vector.

◆ Option

◆ OptionSet

◆ ostream

◆ SingletonExitFunction

typedef void(* LDASTools::AL::SingletonExitFunction)()

Function Documentation

◆ at_exit()

void LDASTools::AL::at_exit ( SingletonExitFunction Function,
const std::string & Name,
int Ring )

◆ cmp_nocase() [1/2]

int LDASTools::AL::cmp_nocase ( const char * lhs,
const char * rhs )

Case-Insensitve String comparison.

Compares the strings S1 and S2 and returns an integer less than, equal to, greater than zero.

Parameters
S1Left hand side of comparison
S2Right hand side of comparison

◆ cmp_nocase() [2/2]

int LDASTools::AL::cmp_nocase ( const std::string & S1,
const std::string & S2 )

Case-Insensitve String comparison.

Compares the strings S1 and S2 and returns an integer less than, equal to, greater than zero.

Parameters
S1Left hand side of comparison
S2Right hand side of comparison

◆ is_space()

bool LDASTools::AL::is_space ( const char c)

Is character a space?

Parameters
cCharacter to test.
Returns
bool True if argument is whitespace, false otherwise.

◆ JournalLog()

ErrorLog LDASTools::AL::JournalLog ( std::cerr ,
true  )

◆ LDASTOOLS_DEPRECATED()

class LDASTools::AL::AtExit LDASTools::AL::LDASTOOLS_DEPRECATED ( "use method LDASTools::AL::MemChecker instead" )

◆ not_space()

bool LDASTools::AL::not_space ( const char c)

Is character a not space?

Parameters
cCharacter to test.
Returns
bool True if argument is not a whitespace, false otherwise.

◆ operator!=()

bool LDASTools::AL::operator!= ( const GPSTime & ,
const GPSTime &  )

Inequality operator.

◆ operator+() [1/2]

GPSTime LDASTools::AL::operator+ ( const double & ,
const GPSTime &  )

Addition operator.

◆ operator+() [2/2]

GPSTime LDASTools::AL::operator+ ( const GPSTime & ,
const double &  )

Addition operator.

◆ operator-() [1/2]

GPSTime LDASTools::AL::operator- ( const GPSTime & ,
const double &  )

Subtraction operator.

◆ operator-() [2/2]

double LDASTools::AL::operator- ( const GPSTime & ,
const GPSTime &  )

Subtraction operator.

◆ operator<()

bool LDASTools::AL::operator< ( const GPSTime & ,
const GPSTime &  )

Less than operator.

◆ operator<<()

std::ostream & LDASTools::AL::operator<< ( std::ostream & Stream,
const GPSTime & Time )

Output operator.

◆ operator<=()

bool LDASTools::AL::operator<= ( const GPSTime & ,
const GPSTime &  )

Less than or equal to operator.

◆ operator==()

bool LDASTools::AL::operator== ( const GPSTime & ,
const GPSTime &  )

Equality operator.

◆ operator>()

bool LDASTools::AL::operator> ( const GPSTime & ,
const GPSTime &  )

Greater than operator.

◆ operator>=()

bool LDASTools::AL::operator>= ( const GPSTime & ,
const GPSTime &  )

Greater than or equal to operator.

◆ Rethrow()

void LDASTools::AL::Rethrow ( const std::string & Prefix,
const std::exception & Exception )

Rethrow a std::exception adding information to the front.

Parameters
PrefixText to be prepended to the exception text.
ExceptionOrigional exception that was thrown and used as type of exception to throw.

logic_error: begin

logic_error: end runtime_error: begin

runtime_error: end others: begin

others: end

◆ SetOffsetTableFilename()

void LDASTools::AL::SetOffsetTableFilename ( const std::string & Filename)

Establish the filename which contains the leap seconds.

◆ slower()

std::string LDASTools::AL::slower ( const std::string & s)

◆ StdErrLog()

ErrorLog LDASTools::AL::StdErrLog ( std::cerr ,
false  )

◆ string2lower()

void LDASTools::AL::string2lower ( std::string & s)

Convert to Lower-case.

param std::string& s

◆ Timeout() [1/2]

template<typename T>
int LDASTools::AL::Timeout ( boost::shared_ptr< T > CallerTask,
int Seconds,
int & Status,
bool ThrowTimeoutException = true )

◆ Timeout() [2/2]

int LDASTools::AL::Timeout ( Task * CallerTask,
int Seconds,
int & Status,
bool ThrowTimeoutException = true )

Variable Documentation

◆ JournalLog

ErrorLog LDASTools::AL::JournalLog

◆ MMAP_CHUNK

const std::streamoff LDASTools::AL::MMAP_CHUNK = std::streamoff( 0x100000UL )

◆ rw_timeout

int LDASTools::AL::rw_timeout = 0
static

◆ SingletonHolder< T, C, L >::baton

template<class T, template< class > class C, template< class > class L>
SingletonHolder<T,C,L>::baton_type LDASTools::AL::SingletonHolder< T, C, L >::baton

◆ SingletonHolder< T, C, L >::destroyed_

template<class T, template< class > class C, template< class > class L>
bool LDASTools::AL::SingletonHolder< T, C, L >::destroyed_

◆ SingletonHolder< T, C, L >::pInstance_

template<class T, template< class > class C, template< class > class L>
SingletonHolder<T,C,L>::PtrInstanceType LDASTools::AL::SingletonHolder< T, C, L >::pInstance_

◆ StdErrLog

ErrorLog LDASTools::AL::StdErrLog

◆ TIMEOUT_COMPLETED

const int LDASTools::AL::TIMEOUT_COMPLETED = 0x0002

◆ TIMEOUT_TIMED_OUT

const int LDASTools::AL::TIMEOUT_TIMED_OUT = 0x0001