A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::LogComponent Class Reference

#include <log.h>

Public Member Functions

 LogComponent (char const *name)
void Disable (enum LogLevel level)
void Enable (enum LogLevel level)
void EnvVarCheck (char const *name)
std::string GetLevelLabel (const enum LogLevel level) const
bool IsEnabled (enum LogLevel level) const
bool IsNoneEnabled (void) const
char const * Name (void) const

Private Attributes

int32_t m_levels
char const * m_name

Detailed Description

Definition at line 385 of file log.h.

Constructor & Destructor Documentation

ns3::LogComponent::LogComponent ( char const *  name)

Definition at line 87 of file log.cc.

References EnvVarCheck(), ns3::GetComponentList(), and NS_FATAL_ERROR.

+ Here is the call graph for this function:

Member Function Documentation

void ns3::LogComponent::Disable ( enum LogLevel  level)

Definition at line 264 of file log.cc.

References m_levels.

void ns3::LogComponent::Enable ( enum LogLevel  level)

Definition at line 258 of file log.cc.

References m_levels.

Referenced by EnvVarCheck().

+ Here is the caller graph for this function:

void ns3::LogComponent::EnvVarCheck ( char const *  name)
std::string ns3::LogComponent::GetLevelLabel ( const enum LogLevel  level) const
bool ns3::LogComponent::IsEnabled ( enum LogLevel  level) const

Definition at line 245 of file log.cc.

References m_levels.

bool ns3::LogComponent::IsNoneEnabled ( void  ) const

Definition at line 252 of file log.cc.

References m_levels.

char const * ns3::LogComponent::Name ( void  ) const

Definition at line 270 of file log.cc.

References m_name.

Member Data Documentation

int32_t ns3::LogComponent::m_levels
private

Definition at line 396 of file log.h.

Referenced by Disable(), Enable(), IsEnabled(), and IsNoneEnabled().

char const* ns3::LogComponent::m_name
private

Definition at line 397 of file log.h.

Referenced by Name().


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