ifw-fnd 1.0.0
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
base.hpp File Reference
#include <array>
#include <iostream>
#include <thread>
#include <ctime>
#include <iomanip>
#include <variant>
#include <fmt/format.h>
#include <ifw/fnd/defs/logger.hpp>

Go to the source code of this file.

Namespaces

namespace  ifw
 
namespace  ifw::fnd
 This source file contains definitions of the types and constants to handle data types.
 

Macros

#define IFWLOC
 Macro generating a location identifier: "<file>:<line>:<function>:<thread>".
 

Functions

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

Detailed Description

Macro Definition Documentation

◆ IFWLOC

#define IFWLOC
Value:
(ifw::fnd::IsoTimeNow(6) + ":" + std::string(__FILE__) + ":" +\
std::to_string(__LINE__) + ":" + std::string(__FUNCTION__) + ":" + ifw::fnd::ThreadName())
std::string ThreadName()
Return name of current thread.
Definition base.hpp:105
std::string IsoTimeNow(const int8_t precision)
Definition base.hpp:99

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