YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::Logger Class Reference

#include <Logger.hpp>

Inheritance diagram for yap::Logger:
Collaboration diagram for yap::Logger:

List of all members.

Public Member Functions

 Logger (OStream &oStream)
virtual ~Logger ()
template<typename T >
LoggerLog (const T &value)
template<typename T >
LoggerLogLine (const T &value)
void AddMode (LoggerMode *mode)
void RemoveMode (LoggerMode *mode)
IWriter members.
virtual void Write (const String &value)
virtual void Write (const String &name, const String &value)
virtual void Write (const bool &value)
virtual void Write (const String &name, const bool &value)
virtual void Write (const char &value)
virtual void Write (const String &name, const char &value)
virtual void Write (const uchar &value)
virtual void Write (const String &name, const uchar &value)
virtual void Write (const Int16 &value)
virtual void Write (const String &name, const Int16 &value)
virtual void Write (const UInt16 &value)
virtual void Write (const String &name, const UInt16 &value)
virtual void Write (const int &value)
virtual void Write (const String &name, const int &value)
virtual void Write (const uint &value)
virtual void Write (const String &name, const uint &value)
virtual void Write (const Int64 &value)
virtual void Write (const String &name, const Int64 &value)
virtual void Write (const UInt64 &value)
virtual void Write (const String &name, const UInt64 &value)
virtual void Write (const float &value)
virtual void Write (const String &name, const float &value)
virtual void Write (const double &value)
virtual void Write (const String &name, const double &value)
virtual void Write (const Vector2 &value)
virtual void Write (const String &name, const Vector2 &value)
virtual void Write (const ID &value)
virtual void Write (const String &name, const ID &value)
- Public Member Functions inherited from yap::IWriter
virtual ~IWriter ()
virtual void Accept (IWriterVisitor &visitor)=0
virtual void Accept (IWriterConstVisitor &visitor) const =0

Protected Member Functions

void Activate (bool isActive)

Private Member Functions

 DISALLOW_COPY (Logger)

Private Attributes

OStreamoStream_
bool isActive_
collection::List< LoggerMode * > modes_

Detailed Description

Definition at line 12 of file Logger.hpp.


Constructor & Destructor Documentation

yap::Logger::Logger ( OStream oStream)
explicit

Definition at line 6 of file Logger.cpp.

yap::Logger::~Logger ( )
virtual

Definition at line 13 of file Logger.cpp.


Member Function Documentation

void yap::Logger::Activate ( bool  isActive)
protected

Definition at line 19 of file Logger.cpp.

Here is the caller graph for this function:

void yap::Logger::AddMode ( LoggerMode mode)

Definition at line 24 of file Logger.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::Logger::DISALLOW_COPY ( Logger  )
private
template<typename T >
Logger & yap::Logger::Log ( const T &  value)
inline

Definition at line 7 of file Logger.hxx.

Here is the caller graph for this function:

template<typename T >
Logger & yap::Logger::LogLine ( const T &  value)
inline

Definition at line 24 of file Logger.hxx.

Here is the caller graph for this function:

void yap::Logger::RemoveMode ( LoggerMode mode)

Definition at line 29 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String value)
virtual

Implements yap::IWriter.

Definition at line 34 of file Logger.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Logger::Write ( const String name,
const String value 
)
virtual

Implements yap::IWriter.

Definition at line 39 of file Logger.cpp.

void yap::Logger::Write ( const bool &  value)
virtual

Implements yap::IWriter.

Definition at line 45 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const bool &  value 
)
virtual

Implements yap::IWriter.

Definition at line 50 of file Logger.cpp.

void yap::Logger::Write ( const char &  value)
virtual

Implements yap::IWriter.

Definition at line 56 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const char &  value 
)
virtual

Implements yap::IWriter.

Definition at line 61 of file Logger.cpp.

void yap::Logger::Write ( const uchar value)
virtual

Implements yap::IWriter.

Definition at line 67 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const uchar value 
)
virtual

Implements yap::IWriter.

Definition at line 72 of file Logger.cpp.

void yap::Logger::Write ( const Int16 value)
virtual

Implements yap::IWriter.

Definition at line 78 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const Int16 value 
)
virtual

Implements yap::IWriter.

Definition at line 83 of file Logger.cpp.

void yap::Logger::Write ( const UInt16 value)
virtual

Implements yap::IWriter.

Definition at line 89 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const UInt16 value 
)
virtual

Implements yap::IWriter.

Definition at line 94 of file Logger.cpp.

void yap::Logger::Write ( const int &  value)
virtual

Implements yap::IWriter.

Definition at line 100 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const int &  value 
)
virtual

Implements yap::IWriter.

Definition at line 105 of file Logger.cpp.

void yap::Logger::Write ( const uint value)
virtual

Implements yap::IWriter.

Definition at line 111 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const uint value 
)
virtual

Implements yap::IWriter.

Definition at line 116 of file Logger.cpp.

void yap::Logger::Write ( const Int64 value)
virtual

Implements yap::IWriter.

Definition at line 122 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const Int64 value 
)
virtual

Implements yap::IWriter.

Definition at line 127 of file Logger.cpp.

void yap::Logger::Write ( const UInt64 value)
virtual

Implements yap::IWriter.

Definition at line 133 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const UInt64 value 
)
virtual

Implements yap::IWriter.

Definition at line 138 of file Logger.cpp.

void yap::Logger::Write ( const float &  value)
virtual

Implements yap::IWriter.

Definition at line 144 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const float &  value 
)
virtual

Implements yap::IWriter.

Definition at line 149 of file Logger.cpp.

void yap::Logger::Write ( const double &  value)
virtual

Implements yap::IWriter.

Definition at line 155 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const double &  value 
)
virtual

Implements yap::IWriter.

Definition at line 160 of file Logger.cpp.

void yap::Logger::Write ( const Vector2 value)
virtual

Implements yap::IWriter.

Definition at line 166 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const Vector2 value 
)
virtual

Implements yap::IWriter.

Definition at line 175 of file Logger.cpp.

void yap::Logger::Write ( const ID value)
virtual

Implements yap::IWriter.

Definition at line 181 of file Logger.cpp.

Here is the call graph for this function:

void yap::Logger::Write ( const String name,
const ID value 
)
virtual

Implements yap::IWriter.

Definition at line 186 of file Logger.cpp.


Member Data Documentation

bool yap::Logger::isActive_
private

Definition at line 82 of file Logger.hpp.

collection::List<LoggerMode*> yap::Logger::modes_
private

Definition at line 84 of file Logger.hpp.

OStream* yap::Logger::oStream_
private

Definition at line 81 of file Logger.hpp.


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