38 const std::string IntToString(
int i);
39 const std::string IntToString(
int i,
int j);
44 SpecVersion(
int major_,
int minor_) : major_(major_), minor_(minor_) {
45 Assert(major_ < 1000);
46 Assert(minor_ < 1000);
48 const std::string toString()
const {
49 return IntToString(major_, minor_);
53 return this->toInt() > that.toInt();
57 int toInt(
void)
const {
58 return ((major_ << 16) | minor_);
64 const std::string GenerateUUID(
void);
65 void HexDump(
const std::vector<uint8_t> &in);
66 uint64_t GetCurrentEpoch(
void);
67 std::ostream & Timestamp (std::ostream &os);
68 std::ostream & Log (
void);
69 std::string GetAuthToken(
const char *generateTokenRequest);