winss
|
Utility functions. More...
#include <utils.hpp>
Static Public Member Functions | |
static std::string | ExpandEnvironmentVariables (const std::string &value) |
Expand the given string with environment variables. More... | |
static winss::env_t | GetEnvironmentVariables () |
Gets a mapping of the current environment variables. More... | |
static std::vector< char > | GetEnvironmentString (const winss::env_t &env) |
Gets a string for the given environment variables. More... | |
static std::vector< std::string > | SplitString (const std::string &input) |
Splits the string based on a new line. More... | |
static std::string | ConvertToISOString (const std::chrono::system_clock::time_point &time_point) |
Convert the time to a ISO string. More... | |
static std::chrono::system_clock::time_point | ConvertFromISOString (const std::string &iso_string) |
Convert an ISO string to a time point. More... | |
Utility functions.
|
static |
Convert an ISO string to a time point.
iso_string | The ISO string to convert. |
Referenced by winss::SuperviseStateFile::Read().
|
static |
Convert the time to a ISO string.
time_point | The time point to convert. |
Referenced by winss::SuperviseStateFile::Notify(), and winss::LogTmpl< TMutex >::Start().
|
static |
Expand the given string with environment variables.
Strings like ENV_KEY% will be replaces with the environment variable value.
value | The string to replace environment variables. |
References WINDOWS.
Referenced by winss::Environment::ReadEnv(), winss::SuperviseTmpl< TMutex, TProcess >::Start(), winss::SvScanTmpl< TService, TMutex, TProcess >::Stop(), and winss::SvScanTmpl< TService, TMutex, TProcess >::Terminate().
|
static |
Gets a string for the given environment variables.
env | The environment key values. |
Referenced by winss::Environment::ReadEnv().
|
static |
Gets a mapping of the current environment variables.
References WINDOWS.
Referenced by winss::Environment::ReadEnv().
|
static |
Splits the string based on a new line.
input | The string to split. |
Referenced by winss::EnvironmentDir::ReadEnvSource().