15#include "trg/trg/Utilities.h"
33 strftime(ts1,
sizeof(ts1),
"%Y/%m/%d %H:%M %Z", tl);
45 strftime(ts0,
sizeof(ts0),
"%Y%m%d_%H%M", tl);
56 return std::to_string(i);
63 s << std::setprecision(precision) << d;
76 for (i = 0; i < len; i++) {
77 if (!isspace(s[i]))
break;
79 for (; i < len; i++) {
96 for (i = 0; i < len; i++) {
97 if (!isspace(s[i]))
break;
99 for (; i < len; i++) {
100 if (isspace(s[i]))
break;
102 for (; i < len; i++) {
103 if (!isspace(s[i]))
break;
118 for (i = 0; i < f - l; i++) {
119 if ((i % 8) == 0) cout <<
" ";
120 cout << (val >> (f - i)) % 2;
128 for (
unsigned i = f; i < l + 1; i++) {
129 if ((i % 8) == 0) s +=
" ";
static std::string dateStringF(void)
returns date string for filename.
static std::string dateString(void)
returns date string.
static std::string cdrstring(const std::string &s)
CERNLIB cdr.
static std::string itostring(int i)
converts int to string. (Use boost::lexical_cast)
static std::string dtostring(double d, unsigned int precision)
converts double to string.
static std::string carstring(const std::string &s)
CERNLIB car.
static void bitDisplay(unsigned)
Dumps bit contents to cout.
static std::string streamDisplay(unsigned)
Dumps bit stream in string.
Abstract base class for different kinds of events.