ifw-fnd 1.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
ifw::fnd Namespace Reference

This source file contains definitions of the types and constants to handle data types. More...

Namespaces

namespace  datatype
 This source file contains definitions of the types and constants to handle data types.
 
namespace  fits
 This source file contains definitions of the types and constants to handle FITS.
 
namespace  tools
 Header file for the IFW Foundation Tools library.
 

Functions

log4cplus::Logger & Logger ()
 
double TimeSecs ()
 
void SleepSecs (const float sleep_time_in_seconds)
 
std::string IsoTime (const double time_since_epoch, const uint8_t precision)
 
std::string IsoTimeNow (const int8_t precision)
 
std::string ThreadName ()
 Return name of current thread.
 
template<typename... Ts>
std::string VariantToString (const std::variant< Ts... > &var)
 

Detailed Description

This source file contains definitions of the types and constants to handle data types.

Inline function generating a location identifier: "<file>:<line>:<function>:<thread>".

Function Documentation

◆ IsoTime()

std::string ifw::fnd::IsoTime ( const double time_since_epoch,
const uint8_t precision )
inline

Return the ISO8601 time based on the time since epoch, expressed in seconds/double.

Parameters
[in]time_since_epochTime in seconds/double since epoch.
[in]precisionNumber of decimal places for the fractional part of the second.
Returns
ISO8601 time as a string with the requested precision.

◆ IsoTimeNow()

std::string ifw::fnd::IsoTimeNow ( const int8_t precision)
inline

Return the ISO8601 time now.

Parameters
[in]precisionNumber of decimal places for the fractional part of the second.
Returns
ISO8601 time as a string with the requested precision.

◆ Logger()

log4cplus::Logger & ifw::fnd::Logger ( )

◆ SleepSecs()

void ifw::fnd::SleepSecs ( const float sleep_time_in_seconds)
inline

Sleep for the given period of time specified in seconds/double.

Parameters
[in]sleep_time_in_secondsTime in seconds to sleep.
Returns
Void.

◆ ThreadName()

std::string ifw::fnd::ThreadName ( )
inline

Return name of current thread.

◆ TimeSecs()

double ifw::fnd::TimeSecs ( )
inline

Return the current time since epoch in seconds/double.

Returns
Time in seconds since epoch as a double value.

◆ VariantToString()

template<typename... Ts>
std::string ifw::fnd::VariantToString ( const std::variant< Ts... > & var)