Monero
Loading...
Searching...
No Matches
el::base::utils Namespace Reference

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

Namespaces

namespace  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  File
class  Str
 String utilities helper class used internally. You should not use it. More...
class  OS
 Operating System helper static class used internally. You should not use it. More...
class  DateTime
 Contains utilities for cross-platform date/time. This class make use of el::base::utils::Str. More...
class  CommandLineArgs
 Command line arguments for application if specified using el::Helpers::setArgs(..) or START_EASYLOGGINGPP(..). More...
class  AbstractRegistry
 Abstract registry (aka repository) that provides basic interface for pointer repository specified by T_Ptr type. 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  Utils

Functions

static void abort (int status, const std::string &reason)
 Aborts application due with user-defined status.
static el::Color colorFromLevel (el::Level level)
static void setConsoleColor (el::Color color, bool bright)
static bool endswith (const std::string &s, const std::string &ending)
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.
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()

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

Aborts application due with user-defined status.

◆ addFlag()

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

◆ colorFromLevel()

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

◆ endswith()

bool el::base::utils::endswith ( const std::string & s,
const std::string & ending )
static

◆ hasFlag()

template<typename Enum>
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>
void el::base::utils::removeFlag ( Enum e,
base::type::EnumType * flag )
inlinestatic

◆ safeDelete()

template<typename T>
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()

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