Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
el::base::RegisteredLoggers Class Reference

Loggers repository. More...

#include <easylogging++.h>

Inheritance diagram for el::base::RegisteredLoggers:
Inheritance graph
[legend]

Public Member Functions

ConfigurationsdefaultConfigurations (void)
 
void flushAll (void)
 
Loggerget (const std::string &id, bool forceCreation=true)
 
bool has (const std::string &id)
 
template<typename T >
bool installLoggerRegistrationCallback (const std::string &id)
 
template<typename T >
T * loggerRegistrationCallback (const std::string &id)
 
base::LogStreamsReferenceMaplogStreamsReference (void)
 
 RegisteredLoggers (const LogBuilderPtr &defaultLogBuilder)
 
bool remove (const std::string &id)
 
void setDefaultConfigurations (const Configurations &configurations)
 
void setDefaultLogBuilder (LogBuilderPtr &logBuilderPtr)
 
template<typename T >
void uninstallLoggerRegistrationCallback (const std::string &id)
 
void unregister (Logger *&logger)
 
virtual ~RegisteredLoggers (void)
 
- Public Member Functions inherited from el::base::utils::Registry< Logger, std::string >
Registryoperator= (const Registry &sr)
 Assignment operator that unregisters all the existing registeries and deeply copies each of repo element. More...
 
 Registry (void)
 
 Registry (const Registry &sr)
 Copy constructor that is useful for base classes. Try to avoid this constructor, use move constructor. More...
 
virtual ~Registry (void)
 
- Public Member Functions inherited from el::base::utils::AbstractRegistry< Logger, std::unordered_map< std::string, Logger * > >
 AbstractRegistry (void)
 Default constructor. More...
 
 AbstractRegistry (AbstractRegistry &&sr)
 Move constructor that is useful for base classes. More...
 
virtual iterator begin (void) ELPP_FINAL
 
virtual const_iterator cbegin (void) const ELPP_FINAL
 
virtual const_iterator cend (void) const ELPP_FINAL
 
virtual bool empty (void) const ELPP_FINAL
 
virtual iterator end (void) ELPP_FINAL
 
virtual std::unordered_map< std::string, Logger * > & list (void) ELPP_FINAL
 Returns underlying container by reference. More...
 
virtual const std::unordered_map< std::string, Logger * > & list (void) const ELPP_FINAL
 Returns underlying container by constant reference. More...
 
bool operator!= (const AbstractRegistry< Logger, std::unordered_map< std::string, Logger * > > &other)
 
AbstractRegistryoperator= (AbstractRegistry &&sr)
 Assignment move operator. More...
 
bool operator== (const AbstractRegistry< Logger, std::unordered_map< std::string, Logger * > > &other)
 
virtual std::size_t size (void) const ELPP_FINAL
 
virtual ~AbstractRegistry (void)
 
- Public Member Functions inherited from el::base::threading::ThreadSafe
virtual void acquireLock (void) ELPP_FINAL
 
virtual base::threading::Mutexlock (void) ELPP_FINAL
 
virtual void releaseLock (void) ELPP_FINAL
 

Private Member Functions

void unsafeFlushAll (void)
 

Private Attributes

Configurations m_defaultConfigurations
 
LogBuilderPtr m_defaultLogBuilder
 
std::unordered_map< std::string, base::type::LoggerRegistrationCallbackPtrm_loggerRegistrationCallbacks
 
base::LogStreamsReferenceMap m_logStreamsReference
 

Friends

class el::base::Storage
 

Additional Inherited Members

- Public Types inherited from el::base::utils::Registry< Logger, std::string >
typedef Registry< Logger, std::string >::const_iterator const_iterator
 
typedef Registry< Logger, std::string >::iterator iterator
 
- Public Types inherited from el::base::utils::AbstractRegistry< Logger, std::unordered_map< std::string, Logger * > >
typedef std::unordered_map< std::string, Logger * >::const_iterator const_iterator
 
typedef std::unordered_map< std::string, Logger * >::iterator iterator
 
- Protected Member Functions inherited from el::base::utils::Registry< Logger, std::string >
Loggerget (const std::string &uniqKey)
 Gets pointer from repository. If none found, nullptr is returned. More...
 
virtual void registerNew (const std::string &uniqKey, Logger *ptr) ELPP_FINAL
 Registers new registry to repository. More...
 
void unregister (const std::string &uniqKey)
 Unregisters single entry mapped to specified unique key. More...
 
virtual void unregisterAll (void) ELPP_FINAL
 Unregisters all the pointers from current repository. More...
 
- Protected Member Functions inherited from el::base::utils::AbstractRegistry< Logger, std::unordered_map< std::string, Logger * > >
virtual void deepCopy (const AbstractRegistry< Logger, std::unordered_map< std::string, Logger * > > &)=0
 
void reinitDeepCopy (const AbstractRegistry< Logger, std::unordered_map< std::string, Logger * > > &sr)
 
- Protected Member Functions inherited from el::base::threading::ThreadSafe
 ThreadSafe (void)
 
virtual ~ThreadSafe (void)
 

Detailed Description

Loggers repository.

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

Constructor & Destructor Documentation

el::base::RegisteredLoggers::RegisteredLoggers ( const LogBuilderPtr defaultLogBuilder)
explicit

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

virtual el::base::RegisteredLoggers::~RegisteredLoggers ( void  )
inlinevirtual

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

Member Function Documentation

Configurations* el::base::RegisteredLoggers::defaultConfigurations ( void  )
inline

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

void el::base::RegisteredLoggers::flushAll ( void  )
inline

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

Logger * el::base::RegisteredLoggers::get ( const std::string id,
bool  forceCreation = true 
)

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

bool el::base::RegisteredLoggers::has ( const std::string id)
inline

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

template<typename T >
bool el::base::RegisteredLoggers::installLoggerRegistrationCallback ( const std::string id)
inline

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

template<typename T >
T* el::base::RegisteredLoggers::loggerRegistrationCallback ( const std::string id)
inline

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

base::LogStreamsReferenceMap* el::base::RegisteredLoggers::logStreamsReference ( void  )
inline

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

bool el::base::RegisteredLoggers::remove ( const std::string id)

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

void el::base::RegisteredLoggers::setDefaultConfigurations ( const Configurations configurations)
inline

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

void el::base::RegisteredLoggers::setDefaultLogBuilder ( LogBuilderPtr logBuilderPtr)
inline

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

template<typename T >
void el::base::RegisteredLoggers::uninstallLoggerRegistrationCallback ( const std::string id)
inline

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

void el::base::RegisteredLoggers::unregister ( Logger *&  logger)
inline

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

void el::base::RegisteredLoggers::unsafeFlushAll ( void  )
private

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

Friends And Related Function Documentation

friend class el::base::Storage
friend

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

Member Data Documentation

Configurations el::base::RegisteredLoggers::m_defaultConfigurations
private

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

LogBuilderPtr el::base::RegisteredLoggers::m_defaultLogBuilder
private

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

std::unordered_map<std::string, base::type::LoggerRegistrationCallbackPtr> el::base::RegisteredLoggers::m_loggerRegistrationCallbacks
private

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

base::LogStreamsReferenceMap el::base::RegisteredLoggers::m_logStreamsReference
private

Definition at line 2404 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