WARPXM v1.10.0
Loading...
Searching...
No Matches
WxStreamHandler Class Reference

Class to log messages to an open stream. More...

#include <wxlogrecordhandler.h>

Inheritance diagram for WxStreamHandler:
WxLogRecordHandler WxObject

Detailed Description

Class to log messages to an open stream.

Public Member Functions

 WxStreamHandler ()
 
 WxStreamHandler (std::ostream *stream)
 Create new handler with the specified output stream.
 
- Public Member Functions inherited from WxLogRecordHandler
 WxLogRecordHandler ()
 Create new handler and attach std::cout to it.
 
virtual ~WxLogRecordHandler ()
 
void setStream (std::ostream *stream)
 Set the output stream to one specified.
 
void write (const std::string &msg)
 Write message 'msg' to the output stream.
 
void setOwns (bool handlerOwns)
 Set if the stream to which data is being written is owned by the handler.
 
bool owns () const
 Returns true if handler owns the stream and false otherwise.
 
- Public Member Functions inherited from WxObject
virtual ~WxObject ()
 Dtor: destroy object.
 
void setIo (WxIoBase &io)
 Set the I/O pointer for use in object.
 
void setMsg (WxMsgBase &msg)
 Set the msg pointer for use in object.
 
WxIoBasegetIo ()
 Return reference to I/O object.
 
const WxIoBasegetIo () const
 Return constant reference to I/O object.
 
WxMsgBasegetMsg ()
 Return reference to msg object.
 
const WxMsgBasegetMsg () const
 Return const reference to msg object.
 
virtual void setup (const WxCryptSet &wxc)
 Setup object using supplied crypset.
 
virtual void init ()
 Initialize the object.
 
virtual void finishBuild ()
 Finish building the object.
 
virtual void load (WxIoBase &io, const WxIoNodeType &grpNode)
 Load object from file.
 
virtual void dump (WxIoBase &io, WxIoNodeType &grpNode) const
 Dump object to file.
 
virtual std::string name () const
 Get name of object.
 
void setName (const std::string &nm)
 Set object's name.
 

Additional Inherited Members

- Protected Member Functions inherited from WxObject
 WxObject ()
 Create object, that will be initialized subsequently.
 
 WxObject (const std::string &name)
 Create object with given name bypassing object setup phase Protected because there is no reason to have a WxObject directly, as it is meant to be a parent class.
 

Constructor & Destructor Documentation

◆ WxStreamHandler() [1/2]

WxStreamHandler::WxStreamHandler ( )
inline

◆ WxStreamHandler() [2/2]

WxStreamHandler::WxStreamHandler ( std::ostream *  stream)
inline

Create new handler with the specified output stream.


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