ToolDAQFramework
|
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... | |
enum util::LogLevel |
Log level enumerations.
Enumerator | |
---|---|
FATAL | |
ERROR | |
WARN | |
INFO | |
DEBUG1 | |
DEBUG2 | |
DEBUG3 |
Definition at line 182 of file Utilities.h.
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 |
When sorting Window structs, sort by the start time.
Definition at line 167 of file Utilities.h.