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>

+ Collaboration diagram for ns3::LogComponent:

Public Member Functions

 LogComponent (const std::string &name)
 
void Disable (enum LogLevel level)
 
void Enable (enum LogLevel level)
 
void EnvVarCheck (const std::string &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
 
std::string m_name
 

Detailed Description

Definition at line 419 of file log.h.

Constructor & Destructor Documentation

ns3::LogComponent::LogComponent ( const std::string &  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 ( const std::string &  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 430 of file log.h.

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

std::string ns3::LogComponent::m_name
private

Definition at line 431 of file log.h.

Referenced by Name().


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