|
| CookieManager (const std::string &name="CookieManager") |
|
void | setCookie (const std::string &line, std::string domain, std::string uri) |
|
std::string | httpHeaderLine (const std::string &domain, const std::string &uri) |
|
std::string | getCookieVal (const std::string &name, std::string domain) |
|
bool | empty () const |
|
void | eraseCookies (const std::string &domain) |
|
virtual bool | save () |
|
| Logger (std::string label) |
|
std::string | label () const |
| Return the object's log label.
|
|
void | resetLabel (const std::string &new_label) |
| Modify the object's log label.
|
|
|
static void | setLogFile (std::ostream &stream) |
| Set global log destination. More...
|
|
static void | reopenLogFile (const std::string &filename) |
| If current log is a file (ofstream), reopen it with new filename:
|
|
static void | setLogLimit (unsigned int loglines=0, unsigned int warnlines=0, unsigned int errlines=0) |
| Set max number of lines of info/warn/err log. More...
|
|
static void | sayTime (std::ostream &stream) |
| Write current local time to the given stream.
|
|
static bool | inError () |
| Return true if any error has been logged (globally since start)
|
|
static std::ostream & | err_log (const std::string &label) |
| Write a line of error log. More...
|
|
static std::ostream & | warn_log (const std::string &label) |
| Write a line of warning log. More...
|
|
static std::ostream & | log (const std::string &label) |
| Write a line of info log. More...
|
|
static void | flushLogFile () |
|
static void | pauseLogging () |
| Disable all log output until next call to Logger::setLogFile.
|
|
static double | secondsSince (const TimePoint &t) |
|
static double | secondsTo (const TimePoint &t) |
|
static int64_t | msSince (const TimePoint &t) |
|
static int64_t | msTo (const TimePoint &t) |
|
static bool | hasExpired (const TimePoint &t) |
| Return true if current time is after the given TimePoint.
|
|
static TimePoint | timeNow () |
| Return current time.
|
|
static TimePoint | timeAfter (double s) |
| Return current time plus s seconds.
|
|
static TimePoint | timeMax () |
| Return a very distant time.
|
|
static std::chrono::microseconds | toUs (double t) |
| Convert s (seconds) to std::chrono::microseconds.
|
|
static std::string | dateString (time_t t=0) |
| Return local time, formatted as 2023-10-14T09:38:47+0200.
|
|
static std::string | dateString2 (time_t t=0) |
| Return local time, formatted as Sat, 14 Oct 2023 09:38:47.
|
|
static std::string | createHashKey (unsigned int length=20) |
| Return a random string. More...
|
|