WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
WMVLog::LogOutput Class Referenceabstract

Abstract base class for log output sinks (console, file, etc.). More...

#include <LogOutput.h>

Inheritance diagram for WMVLog::LogOutput:
[legend]
Collaboration diagram for WMVLog::LogOutput:
[legend]

Public Member Functions

virtual void write (const std::string &message)=0
 Write a formatted log message to this output.
 
- Public Member Functions inherited from Component
 Component ()
 
virtual ~Component ()
 
virtual bool addChild (Component *)
 Add a child component to this node.
 
virtual bool removeChild (Component *)
 Remove a child component from this node.
 
virtual void removeAllChildren ()
 
virtual unsigned int nbChildren () const
 
virtual bool findChildComponent (Component *, bool)
 
virtual ComponentgetChild (unsigned int)
 
virtual const ComponentgetChild (unsigned int) const
 
void setParentComponent (Component *)
 Set the parent of this component.
 
virtual void onParentSet (Component *)
 Called after the parent has been set; override for custom logic.
 
const Componentparent () const
 Get the parent component (const).
 
Componentparent ()
 Get the parent component.
 
template<class DataType >
const DataType * firstParentOfType ()
 Walk up the parent chain and return the first ancestor of the given type.
 
void ref ()
 Increment the reference counter.
 
void unref ()
 Decrement the reference counter; deletes this when it reaches zero.
 
void setName (const std::string &name)
 
std::string name () const
 
virtual void onNameChanged ()
 
void print (int l_depth=0)
 
virtual void doPrint ()
 
void copy (const Component &component, bool)
 

Detailed Description

Abstract base class for log output sinks (console, file, etc.).

Definition at line 9 of file LogOutput.h.

Member Function Documentation

◆ write()

virtual void WMVLog::LogOutput::write ( const std::string &  message)
pure virtual

Write a formatted log message to this output.

Implemented in WMVLog::LogOutputConsole, and WMVLog::LogOutputFile.


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