1 #ifndef MHO_LegacyRootCodeGenerator_HH__
2 #define MHO_LegacyRootCodeGenerator_HH__
20 #define HOPS_ROOT_BREAK (1519659904)
47 std::vector< std::string >
GetCodes(std::size_t N);
79 std::string
root_id(
int year,
int day,
int hour,
int min,
int sec);
92 std::string
root_id_break(time_t now,
int year,
int day,
int hour,
int min,
int sec);
Class MHO_LegacyRootCodeGenerator.
Definition: MHO_LegacyRootCodeGenerator.hh:26
std::string root_id(int year, int day, int hour, int min, int sec)
Calculates and returns a root ID string based on input time parameters.
Definition: MHO_LegacyRootCodeGenerator.cc:75
std::string root_id_later(time_t now)
Generates a root ID string based on the input time_t value.
Definition: MHO_LegacyRootCodeGenerator.cc:47
std::string root_id_break(time_t now, int year, int day, int hour, int min, int sec)
Determines and returns root ID based on time parameters and comparison with HOPS_ROOT_BREAK.
Definition: MHO_LegacyRootCodeGenerator.cc:112
std::vector< std::string > GetCodes(std::size_t N)
Getter for multiple root codes get a pre-assigned sequential list of N root codes to avoid collisions...
Definition: MHO_LegacyRootCodeGenerator.cc:19
virtual ~MHO_LegacyRootCodeGenerator()
Definition: MHO_LegacyRootCodeGenerator.hh:29
MHO_LegacyRootCodeGenerator()
Definition: MHO_LegacyRootCodeGenerator.hh:28
std::string GetCode()
get a single code corresponding to the current time
Definition: MHO_LegacyRootCodeGenerator.cc:6
int root_id_delta(time_t now)
Calculates and returns delta value based on current time comparison with the HOPS_ROOT_BREAK time ess...
Definition: MHO_LegacyRootCodeGenerator.cc:39
#define min(a, b)
Definition: max555.c:9
Definition: MHO_AdhocFlagging.hh:18