ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Enumerations | Functions
util Namespace Reference

Classes

class  Stopwatch
 
struct  StopwatchTimes
 
struct  Window
 Contains the start and end of a time window, along with an ID (nominally trigger number) More...
 

Enumerations

enum  LogLevel {
  FATAL =-1, ERROR =0, WARN =1, INFO =2,
  DEBUG1 =3, DEBUG2 =4, DEBUG3 =5
}
 Log level enumerations. More...
 

Functions

bool FileExists (std::string pathname, std::string filename)
 Check if a file exists. More...
 
void Log (const std::string &message, const int message_level)
 Format messages in the same way as for tools. More...
 
void Log (std::stringstream &message, const int message_level)
 Format messages in the same way as for tools. More...
 
static bool WindowSorter (const Window &lhs, const Window &rhs)
 When sorting Window structs, sort by the start time. More...
 

Enumeration Type Documentation

Log level enumerations.

Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEBUG1 
DEBUG2 
DEBUG3 

Definition at line 182 of file Utilities.h.

Function Documentation

bool util::FileExists ( std::string  pathname,
std::string  filename 
)

Check if a file exists.

Definition at line 264 of file Utilities.cpp.

void util::Log ( const std::string &  message,
const int  message_level 
)

Format messages in the same way as for tools.

Definition at line 276 of file Utilities.cpp.

void util::Log ( std::stringstream &  message,
const int  message_level 
)

Format messages in the same way as for tools.

Definition at line 282 of file Utilities.cpp.

static bool util::WindowSorter ( const Window &  lhs,
const Window &  rhs 
)
static

When sorting Window structs, sort by the start time.

Definition at line 167 of file Utilities.h.