Static Public Member Functions | Static Public Attributes | List of all members
el::ConfigurationTypeHelper Class Reference

Static class that contains helper functions for el::ConfigurationType. More...

#include <easylogging++.h>

Inheritance diagram for el::ConfigurationTypeHelper:
Inheritance graph
[legend]

Static Public Member Functions

static ConfigurationType castFromInt (base::type::EnumType c)
 Casts int(ushort) to configurationt type, useful for iterating through enum. More...
 
static base::type::EnumType castToInt (ConfigurationType configurationType)
 Casts configuration type to int, useful for iterating through enum. More...
 
static ConfigurationType convertFromString (const char *configStr)
 Converts from configStr to ConfigurationType. More...
 
static const char * convertToString (ConfigurationType configurationType)
 Converts configuration type to associated const char*. More...
 
static void forEachConfigType (base::type::EnumType *startIndex, const std::function< bool(void)> &fn)
 Applies specified function to each configuration type starting from startIndex. More...
 

Static Public Attributes

static const base::type::EnumType kMaxValid = static_cast<base::type::EnumType>(ConfigurationType::MaxLogFileSize)
 Represents maximum valid configuration type. This is used internally and you should not need it. More...
 
static const base::type::EnumType kMinValid = static_cast<base::type::EnumType>(ConfigurationType::Enabled)
 Represents minimum valid configuration type. Useful when iterating through enum. More...
 

Detailed Description

Static class that contains helper functions for el::ConfigurationType.

Definition at line 660 of file easylogging++.h.

Member Function Documentation

static ConfigurationType el::ConfigurationTypeHelper::castFromInt ( base::type::EnumType  c)
inlinestatic

Casts int(ushort) to configurationt type, useful for iterating through enum.

Definition at line 671 of file easylogging++.h.

static base::type::EnumType el::ConfigurationTypeHelper::castToInt ( ConfigurationType  configurationType)
inlinestatic

Casts configuration type to int, useful for iterating through enum.

Definition at line 667 of file easylogging++.h.

ConfigurationType el::ConfigurationTypeHelper::convertFromString ( const char *  configStr)
static

Converts from configStr to ConfigurationType.

Parameters
configStrUpper case string based configuration type. Lower case is also valid but providing upper case is recommended.

Definition at line 222 of file easylogging++.cc.

const char * el::ConfigurationTypeHelper::convertToString ( ConfigurationType  configurationType)
static

Converts configuration type to associated const char*.

Returns
Upper case string based configuration type.

Definition at line 190 of file easylogging++.cc.

void el::ConfigurationTypeHelper::forEachConfigType ( base::type::EnumType startIndex,
const std::function< bool(void)> &  fn 
)
inlinestatic

Applies specified function to each configuration type starting from startIndex.

Parameters
startIndexinitial value to start the iteration from. This is passed by pointer and is left-shifted so this can be used inside function (fn) to represent current configuration type.
fnfunction to apply with each configuration type. This bool represent whether or not to stop iterating through configurations.

Definition at line 231 of file easylogging++.cc.

Member Data Documentation

const base::type::EnumType el::ConfigurationTypeHelper::kMaxValid = static_cast<base::type::EnumType>(ConfigurationType::MaxLogFileSize)
static

Represents maximum valid configuration type. This is used internally and you should not need it.

Definition at line 665 of file easylogging++.h.

const base::type::EnumType el::ConfigurationTypeHelper::kMinValid = static_cast<base::type::EnumType>(ConfigurationType::Enabled)
static

Represents minimum valid configuration type. Useful when iterating through enum.

Definition at line 663 of file easylogging++.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36