The Pedigree Project 0.1
Public Member Functions | Public Attributes | List of all members
Log::LogEntry Struct Reference

#include <Log.h>

+ Collaboration diagram for Log::LogEntry:

Public Member Functions

 LogEntry ()
 
LogEntry & operator<< (const char *)
 
template<size_t N>
LogEntry & operator<< (const char(&str)[N])
 
LogEntry & operator<< (const String &)
 
LogEntry & operator<< (const StringView &)
 
LogEntry & operator<< (const Cord &)
 
template<size_t N>
LogEntry & operator<< (const StaticString< N > &s)
 
LogEntry & operator<< (const TinyStaticString &)
 
LogEntry & operator<< (const NormalStaticString &)
 
LogEntry & operator<< (const LargeStaticString &)
 
LogEntry & operator<< (const HugeStaticString &)
 
LogEntry & operator<< (char *append_str)
 
LogEntry & operator<< (bool b)
 
template<class T >
LogEntry & operator<< (T *p)
 
template<class T >
LogEntry & operator<< (T n)
 
LogEntry & operator<< (SeverityLevel level)
 
LogEntry & operator<< (NumberType type)
 
LogEntry & operator<< (LogEntryModifier modifier)
 
template<class T >
Log::LogEntry & operator<< (T n)
 

Public Attributes

unsigned int timestamp
 
SeverityLevel severity
 
StaticString< LOG_LENGTH > str
 
NumberType numberType
 
bool lockfree = false
 
bool showTimestamp = true
 

Detailed Description

Stores an entry in the log.

Parameters
[in]Ttype of the log's text

Definition at line 217 of file Log.h.

Constructor & Destructor Documentation

◆ LogEntry()

Log::LogEntry::LogEntry ( )

Constructor does nothing

Definition at line 494 of file Log.cc.

References StaticString< N >::disableHashing(), and str.

Member Function Documentation

◆ operator<<() [1/18]

Log::LogEntry & Log::LogEntry::operator<< ( bool  b)

Adds an entry to the log

Parameters
[in]bboolean value

Definition at line 544 of file Log.cc.

◆ operator<<() [2/18]

Log::LogEntry & Log::LogEntry::operator<< ( char *  append_str)

Adds an entry to the log

Parameters
[in]strthe null-terminated ASCII string that should be added

Definition at line 540 of file Log.cc.

◆ operator<<() [3/18]

Log::LogEntry & Log::LogEntry::operator<< ( const char *  s)

Adds an entry to the log.

Parameters
[in]strthe null-terminated ASCII string that should be added

Definition at line 498 of file Log.cc.

◆ operator<<() [4/18]

template<size_t N>
LogEntry & Log::LogEntry::operator<< ( const char(&)  str[N])
inline

Definition at line 239 of file Log.h.

◆ operator<<() [5/18]

Log::LogEntry & Log::LogEntry::operator<< ( const Cord &  c)

Definition at line 513 of file Log.cc.

◆ operator<<() [6/18]

Log::LogEntry & Log::LogEntry::operator<< ( const HugeStaticString &  s)

Definition at line 535 of file Log.cc.

◆ operator<<() [7/18]

Log::LogEntry & Log::LogEntry::operator<< ( const LargeStaticString &  s)

Definition at line 530 of file Log.cc.

◆ operator<<() [8/18]

Log::LogEntry & Log::LogEntry::operator<< ( const NormalStaticString &  s)

Definition at line 525 of file Log.cc.

◆ operator<<() [9/18]

template<size_t N>
LogEntry & Log::LogEntry::operator<< ( const StaticString< N > &  s)
inline

Definition at line 247 of file Log.h.

◆ operator<<() [10/18]

Log::LogEntry & Log::LogEntry::operator<< ( const String &  s)

Definition at line 503 of file Log.cc.

◆ operator<<() [11/18]

Log::LogEntry & Log::LogEntry::operator<< ( const StringView &  s)

Definition at line 508 of file Log.cc.

◆ operator<<() [12/18]

Log::LogEntry & Log::LogEntry::operator<< ( const TinyStaticString &  s)

Definition at line 520 of file Log.cc.

◆ operator<<() [13/18]

Log::LogEntry & Log::LogEntry::operator<< ( LogEntryModifier  modifier)

Definition at line 590 of file Log.cc.

◆ operator<<() [14/18]

Log::LogEntry & Log::LogEntry::operator<< ( NumberType  type)

Changes the number type between hex and decimal.

Definition at line 565 of file Log.cc.

◆ operator<<() [15/18]

Log::LogEntry & Log::LogEntry::operator<< ( SeverityLevel  level)

Starts an entry in the log.

Definition at line 570 of file Log.cc.

References EMIT_IF, and Timer::getTickCount().

◆ operator<<() [16/18]

template<class T >
LogEntry & Log::LogEntry::operator<< ( T *  p)
inline

Adds an entry to the log

Parameters
[in]ppointer value

Definition at line 265 of file Log.h.

◆ operator<<() [17/18]

template<class T >
LogEntry & Log::LogEntry::operator<< ( T  n)

Adds an entry to the log (integer type)

Parameters
[in]nthe number

◆ operator<<() [18/18]

template<class T >
Log::LogEntry & Log::LogEntry::operator<< ( T  n)

Definition at line 552 of file Log.cc.

Member Data Documentation

◆ lockfree

bool Log::LogEntry::lockfree = false

Was this created in a lock-free context?

Definition at line 230 of file Log.h.

Referenced by Log::installCallback().

◆ numberType

NumberType Log::LogEntry::numberType

The number type mode that we are in.

Definition at line 228 of file Log.h.

◆ severity

SeverityLevel Log::LogEntry::severity

The severity level of this entry.

Definition at line 224 of file Log.h.

Referenced by Log::installCallback().

◆ showTimestamp

bool Log::LogEntry::showTimestamp = true

Should we show the timestamp?

Definition at line 232 of file Log.h.

◆ str

StaticString<LOG_LENGTH> Log::LogEntry::str

The actual entry text.

Definition at line 226 of file Log.h.

Referenced by Log::copyText(), Log::installCallback(), and LogEntry().

◆ timestamp

unsigned int Log::LogEntry::timestamp

The time (since boot) that this log entry was added, in ticks.

Definition at line 222 of file Log.h.


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