ldas-tools-al  2.5.7
Classes | Typedefs | Functions
LDASTools::AL Namespace Reference

The Abstraction Layer. More...

Classes

class  AtExit
 Cleanup upon exit. More...
 
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...
 
class  Directory
 Read the contents of a directory. More...
 
class  ErrorLog
 Error reporting mechanism. More...
 
class  GPSTime
 GPS time class. More...
 
struct  ic_hash
 Hash proto. More...
 
struct  ic_hash< std::string >
 Case-Insensitive String Hash Specialization. More...
 
class  IOLock
 Class to coordinate writing of streams. More...
 
class  Log
 Logging class. More...
 
class  MemChecker
 Memory garbage collector. More...
 
class  MutexLock
 Descibes an object which release a mutex lock. More...
 
class  Pool
 Maintain a collection system calls. More...
 
class  Profile
 Provide profiling information. More...
 
class  PSInfo
 Class to retrieve process information. More...
 
class  ReadWriteLockVariable
 Implements read/write lock symantics for a variable. More...
 
class  SingletonHolder
 
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  ThreadPool
 Maintains a pool of threads. More...
 
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.
 

Functions

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 SetOffsetTableFilename (const std::string &Filename)
 Establish the filename which contains the leap seconds.
 
template<class T >
T * DeletePtr (T *Ptr)
 Deletes a pointer. More...
 
template<class O , class C >
void Purge (C &Container)
 Deletes all pointers from the container. More...
 
template<class C >
void Purge (C &Container)
 Deletes all pointers from the container. More...
 
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...
 
void Rethrow (const std::string &Prefix, const std::exception &Exception)
 Rethrow a std::exception adding information to the front. More...
 

Detailed Description

The Abstraction Layer.

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

Function Documentation

◆ 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

◆ DeletePtr()

template<class T >
T * LDASTools::AL::DeletePtr ( T *  Ptr)
inline

Deletes a pointer.

Pointers are deleted and a NULL pointer is returned in its place.

Parameters
PtrPointer to be deleted
Returns
Value to use in place of origional pointer

◆ 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.

◆ 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.

◆ Purge() [1/2]

template<class O , class C >
void LDASTools::AL::Purge ( C &  Container)
inline

Deletes all pointers from the container.

Go through a container of pointes, deleting each and replacing the value with the appropriate NULL representation

Parameters
ContainerContainer of pointers

◆ Purge() [2/2]

template<class C >
void LDASTools::AL::Purge ( C &  Container)
inline

Deletes all pointers from the container.

Go through a container of pointes, deleting each and replacing the value with the appropriate NULL representation

Parameters
ContainerContainer of pointers

◆ 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

◆ string2lower()

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

Convert to Lower-case.

param std::string& s