Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::StreamAppender Class Reference

Appender implementation, which writes to an arbitrary C++ output stream More...

#include <mitsuba/core/appender.h>

+ Inheritance diagram for mitsuba::StreamAppender:

Public Member Functions

 StreamAppender (std::ostream *pStream)
 
 StreamAppender (const std::string &filename)
 Create a new stream appender logging to a file. More...
 
void append (ELogLevel level, const std::string &pText)
 Append a line of text. More...
 
void logProgress (Float progress, const std::string &name, const std::string &formatted, const std::string &eta, const void *ptr)
 Process a progress message. More...
 
bool logsToFile () const
 Does this appender log to a file. More...
 
void readLog (std::string &target)
 Return the contents of the log file as a string. More...
 
std::string toString () const
 Return a string representation. More...
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from Object
 Object ()
 Construct a new object. More...
 
int getRefCount () const
 Return the current reference count. More...
 
void incRef () const
 Increase the reference count of the object by one. More...
 
void decRef (bool autoDeallocate=true) const
 Decrease the reference count of the object and possibly deallocate it. More...
 

Static Public Attributes

static Classm_theClass
 
- Static Public Attributes inherited from mitsuba::Appender
static Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_theClass
 Pointer to the object's class descriptor. More...
 

Protected Member Functions

virtual ~StreamAppender ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from mitsuba::Appender
virtual ~Appender ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void staticInitialization ()
 Initializes the built-in reference count debugger (if enabled) More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 

Detailed Description

Appender implementation, which writes to an arbitrary C++ output stream

Constructor & Destructor Documentation

mitsuba::StreamAppender::StreamAppender ( std::ostream *  pStream)

Create a new stream appender

Remarks
This constructor is not exposed in the Python bindings
mitsuba::StreamAppender::StreamAppender ( const std::string &  filename)

Create a new stream appender logging to a file.

virtual mitsuba::StreamAppender::~StreamAppender ( )
protectedvirtual

Virtual destructor.

Member Function Documentation

void mitsuba::StreamAppender::append ( ELogLevel  level,
const std::string &  pText 
)
virtual

Append a line of text.

Implements mitsuba::Appender.

virtual const Class* mitsuba::StreamAppender::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from mitsuba::Appender.

void mitsuba::StreamAppender::logProgress ( Float  progress,
const std::string &  name,
const std::string &  formatted,
const std::string &  eta,
const void *  ptr 
)
virtual

Process a progress message.

Implements mitsuba::Appender.

bool mitsuba::StreamAppender::logsToFile ( ) const
inline

Does this appender log to a file.

void mitsuba::StreamAppender::readLog ( std::string &  target)

Return the contents of the log file as a string.

std::string mitsuba::StreamAppender::toString ( ) const
virtual

Return a string representation.

Reimplemented from Object.

Member Data Documentation

Class* mitsuba::StreamAppender::m_theClass
static

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