SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
util.hpp File Reference

Miscellaneous system utilities and other small helper functions. More...

Go to the source code of this file.

Classes

class  shore::timer
 Simple timer class. More...
 

Namespaces

 shore
 SHORE core API.
 

Constant Groups

 shore
 SHORE core API.
 

Enumerations

enum  shore::ExtendedFlag { XFLAG_NA =-1, XFLAG_FALSE =0, XFLAG_TRUE =1, XFLAG_IRRELEVANT =2 }
 Flag type with additional values 'NA' and 'IRRELEVANT'.
 

Functions

template<typename T >
void shore::throw_exception (const T &ex)
 Throw an exception; if debugging is enabled, prints a message and optionally a backtrace when an exception is generated.
 
int shore::get_maxopenfiles (const bool hardlim=false)
 Get the maximal number of open files.
 
int shore::get_nopenfiles ()
 Get the number of files currently opened by the calling process.
 
std::string shore::timestr ()
 Get a string representation of the current time.
 
uint64_t shore::time_stamp ()
 Get a time stamp of the form yyyymmddhhmmss.
 

Detailed Description

Miscellaneous system utilities and other small helper functions.

Author
Felix Ott