Monero
Namespaces | Classes | Functions
el::base::utils Namespace Reference

Namespace containing utility functions/static classes used internally. More...

Namespaces

 bitwise
 Bitwise operations for C++11 strong enum class. This casts e into Flag_T and returns value after bitwise operation Use these function as.
 

Classes

class  AbstractRegistry
 Abstract registry (aka repository) that provides basic interface for pointer repository specified by T_Ptr type. More...
 
class  CommandLineArgs
 Command line arguments for application if specified using el::Helpers::setArgs(..) or START_EASYLOGGINGPP(..) More...
 
class  DateTime
 Contains utilities for cross-platform date/time. This class make use of el::base::utils::Str. More...
 
class  File
 
class  OS
 Operating System helper static class used internally. You should not use it. More...
 
class  Registry
 A pointer registry mechanism to manage memory and provide search functionalities. (non-predicate version) More...
 
class  RegistryWithPred
 A pointer registry mechanism to manage memory and provide search functionalities. (predicate version) More...
 
class  Str
 String utilities helper class used internally. You should not use it. More...
 
class  Utils
 

Functions

static void abort (int status, const std::string &reason)
 Aborts application due with user-defined status. More...
 
static el::Color colorFromLevel (el::Level level)
 
static void setConsoleColor (el::Color color, bool bright)
 
base::type::ostream_toperator<< (base::type::ostream_t &os, const CommandLineArgs &c)
 
template<typename T >
static std::enable_if< std::is_pointer< T * >::value, void >::type safeDelete (T *&pointer)
 Deletes memory safely and points to null. More...
 
template<typename Enum >
static void addFlag (Enum e, base::type::EnumType *flag)
 
template<typename Enum >
static void removeFlag (Enum e, base::type::EnumType *flag)
 
template<typename Enum >
static bool hasFlag (Enum e, base::type::EnumType flag)
 

Detailed Description

Namespace containing utility functions/static classes used internally.

Function Documentation

◆ abort()

static void el::base::utils::abort ( int  status,
const std::string &  reason 
)
static

Aborts application due with user-defined status.

◆ addFlag()

template<typename Enum >
static void el::base::utils::addFlag ( Enum  e,
base::type::EnumType flag 
)
inlinestatic

◆ colorFromLevel()

static el::Color el::base::utils::colorFromLevel ( el::Level  level)
static

◆ hasFlag()

template<typename Enum >
static bool el::base::utils::hasFlag ( Enum  e,
base::type::EnumType  flag 
)
inlinestatic

◆ operator<<()

base::type::ostream_t& el::base::utils::operator<< ( base::type::ostream_t os,
const CommandLineArgs c 
)

◆ removeFlag()

template<typename Enum >
static void el::base::utils::removeFlag ( Enum  e,
base::type::EnumType flag 
)
inlinestatic

◆ safeDelete()

template<typename T >
static std::enable_if<std::is_pointer<T*>::value, void>::type el::base::utils::safeDelete ( T *&  pointer)
static

Deletes memory safely and points to null.

◆ setConsoleColor()

static void el::base::utils::setConsoleColor ( el::Color  color,
bool  bright 
)
static