Namespaces
- namespace AclLog
A namespace for logging utilities. - namespace ControlDataCommon
- namespace IngestUtils
- namespace TimeCommon
- namespace UUIDUtils
A namespace for UUID utility functions.
Updated on 2022-11-17 at 15:40:06 +0100
This is the multi-page printable view of this section. Click here to print.
Updated on 2022-11-17 at 15:40:06 +0100
A namespace for logging utilities.
Name | |
---|---|
enum class | Level { kTrace, kDebug, kInfo, kWarning, kError, kCritical, kOff} Log levels. |
Name | |
---|---|
void | init(const std::string & name) Initialize logging. |
void | setLevel(Level level) Set global logging level. |
Enumerator | Value | Description |
---|---|---|
kTrace | ||
kDebug | ||
kInfo | ||
kWarning | ||
kError | ||
kCritical | ||
kOff |
Log levels.
void init(
const std::string & name
)
Initialize logging.
Parameters:
By default two sinks are created. The first sink writes messages to the console. The second sink attempts to create a log file in the path set by the environment variable ACL_LOG_PATH (’/tmp’ if unset). The name of the log file is ’name-
void setLevel(
Level level
)
Set global logging level.
Parameters:
Updated on 2022-11-17 at 15:40:06 +0100
Name | |
---|---|
struct | ControlDataCommon::ConnectionStatus Connection status struct containing information about a connection event. |
struct | ControlDataCommon::Response A response from a ControlDataReceiver to a request. The UUID tells which receiver the response is sent from. |
struct | ControlDataCommon::StatusMessage A status message from a ControlDataReceiver. The UUID tells which receiver the message is sent from. |
Name | |
---|---|
enum class | ConnectionType { CONNECTED, DISCONNECTED} The connection types. |
Enumerator | Value | Description |
---|---|---|
CONNECTED | ||
DISCONNECTED |
The connection types.
Updated on 2022-11-17 at 15:40:06 +0100
Name | |
---|---|
bool | isRunningWithRootPrivileges() |
bool isRunningWithRootPrivileges()
Return: true if this application is executing with root privileges, false otherwise
Updated on 2022-11-17 at 15:40:06 +0100
Name | |
---|---|
struct | TimeCommon::TAIStatus |
struct | TimeCommon::TimeStructure |
Name | |
---|---|
enum class | StratumLevel { UnknownStratum, stratum0, stratum1, stratum2, stratum3, stratum4} |
Name | |
---|---|
uint64_t | getMonotonicClockMicro() Get current time since epoch. |
TimeCommon::TAIStatus | getStatus() Get TAI status. |
int64_t | getTAIMicro() Get current TAI time. |
std::string | taiMicroToString(int64_t taiTimestamp) Converts the input TAI timestamp to a human readable string. Timestamp is converted to local time including leap seconds. |
Enumerator | Value | Description |
---|---|---|
UnknownStratum | ||
stratum0 | ||
stratum1 | ||
stratum2 | ||
stratum3 | ||
stratum4 |
uint64_t getMonotonicClockMicro()
Get current time since epoch.
Return: Return current time since epoch in microseconds
TimeCommon::TAIStatus getStatus()
Get TAI status.
Return: Return the TAI status
int64_t getTAIMicro()
Get current TAI time.
Return: Return current TAI time in microseconds
std::string taiMicroToString(
int64_t taiTimestamp
)
Converts the input TAI timestamp to a human readable string. Timestamp is converted to local time including leap seconds.
Parameters:
Return: Return a human readable timestamp
Updated on 2022-11-17 at 15:40:06 +0100
A namespace for UUID utility functions.
Name | |
---|---|
std::string | generateRandomUUID() Generates a completely randomized UUID string. |
bool | isValidUUIDString(const std::string & uuid) Checks if a string is a valid UUID string. |
std::string generateRandomUUID()
Generates a completely randomized UUID string.
Return: A random generated UUID string
bool isValidUUIDString(
const std::string & uuid
)
Checks if a string is a valid UUID string.
Parameters:
Return: True if uuid is a valid UUID string, otherwise false
Updated on 2022-11-17 at 15:40:06 +0100