ldas-tools-al  2.6.3
Classes | Typedefs | Functions | Variables
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. More...
 
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. More...
 
GPSTime operator+ (const GPSTime &, const double &)
 Addition operator. More...
 
GPSTime operator+ (const double &, const GPSTime &)
 Addition operator. More...
 
GPSTime operator- (const GPSTime &, const double &)
 Subtraction operator. More...
 
double operator- (const GPSTime &, const GPSTime &)
 Subtraction operator. More...
 
bool operator== (const GPSTime &, const GPSTime &)
 Equality operator. More...
 
bool operator!= (const GPSTime &, const GPSTime &)
 Inequality operator. More...
 
bool operator< (const GPSTime &, const GPSTime &)
 Less than operator. More...
 
bool operator> (const GPSTime &, const GPSTime &)
 Greater than operator. More...
 
bool operator<= (const GPSTime &, const GPSTime &)
 Less than or equal to operator. More...
 
bool operator>= (const GPSTime &, const GPSTime &)
 Greater than or equal to operator. More...
 
std::ostream & operator<< (std::ostream &Stream, const GPSTime &Time)
 Output operator. More...
 
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. More...
 
int cmp_nocase (const char *lhs, const char *rhs)
 Case-Insensitve String comparison. More...
 
bool is_space (const char c)
 Is character a space? More...
 
bool not_space (const char c)
 Is character a not space? More...
 
void string2lower (std::string &s)
 Convert to Lower-case. More...
 
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. More...
 
ErrorLog StdErrLog (std::cerr, false)
 
ErrorLog JournalLog (std::cerr, true)
 

Variables

class LDASTools::AL::BackgroundTaskCounter LDASTOOLS_DEPRECATED
 
ErrorLog StdErrLog
 
ErrorLog JournalLog
 
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 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

◆ cmp_nocase() [2/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

◆ 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 GPSTime ,
const double  
)

Addition operator.

◆ operator+() [2/2]

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

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]

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

◆ Timeout() [2/2]

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

Variable Documentation

◆ JournalLog

ErrorLog LDASTools::AL::JournalLog

◆ LDASTOOLS_DEPRECATED

class LDASTools::AL::BackgroundTaskCounter LDASTools::AL::LDASTOOLS_DEPRECATED

◆ MMAP_CHUNK

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

◆ rw_timeout

int LDASTools::AL::rw_timeout = 0
static

◆ 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