NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::util Namespace Reference

Namespaces

 detail
 
 scheduler
 
 signal
 

Classes

class  DummyClientFace
 a client-side face for unit testing More...
 
class  IndentedStream
 Output to stream with specified indent or prefix. More...
 
class  NotificationStream
 provides a publisher of Notification Stream More...
 
class  NotificationSubscriber
 provides a subscriber of Notification Stream More...
 
class  NotificationSubscriberBase
 
class  RttEstimator
 RTT Estimator. More...
 
class  SegmentFetcher
 Utility class to fetch the latest version of a segmented object. More...
 
class  Sha256
 Provides stateful SHA-256 digest calculation. More...
 
class  Sqlite3Statement
 wrap an SQLite3 prepared statement More...
 

Enumerations

enum  LogLevel {
  LogLevel::FATAL = -1, LogLevel::NONE = 0, LogLevel::ERROR = 1, LogLevel::WARN = 2,
  LogLevel::INFO = 3, LogLevel::DEBUG = 4, LogLevel::TRACE = 5, LogLevel::ALL = 255
}
 Indicates the severity level of a log message. More...
 

Functions

std::ostream & operator<< (std::ostream &os, LogLevel level)
 Output LogLevel as a string. More...
 
LogLevel parseLogLevel (const std::string &s)
 Parse LogLevel from a string. More...
 
std::ostream & operator<< (std::ostream &os, Sha256 &digest)
 

Enumeration Type Documentation

◆ LogLevel

enum ndn::util::LogLevel
strong

Indicates the severity level of a log message.

Enumerator
FATAL 

fatal (will be logged unconditionally)

NONE 

no messages

ERROR 

serious error messages

WARN 

warning messages

INFO 

informational messages

DEBUG 

debug messages

TRACE 

trace messages (most verbose)

ALL 

all messages

Definition at line 32 of file logger.hpp.

Function Documentation

◆ operator<<() [1/2]

std::ostream & ndn::util::operator<< ( std::ostream &  os,
LogLevel  level 
)

Output LogLevel as a string.

Exceptions
std::invalid_argumentunknown level

Definition at line 29 of file logger.cpp.

References ALL, DEBUG, ERROR, FATAL, INFO, NONE, ndn::to_string(), TRACE, and WARN.

◆ parseLogLevel()

LogLevel ndn::util::parseLogLevel ( const std::string &  s)

Parse LogLevel from a string.

Exceptions
std::invalid_argumentunknown level name

Definition at line 54 of file logger.cpp.

References ALL, DEBUG, ERROR, FATAL, INFO, NONE, TRACE, and WARN.

◆ operator<<() [2/2]

std::ostream & ndn::util::operator<< ( std::ostream &  os,
Sha256 digest 
)

Definition at line 144 of file sha256.cpp.

References ndn::util::Sha256::computeDigest(), and ndn::printHex().