Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
BufferVisitor_Dump Struct Reference

Visitor class that dumps events as JSON. More...

Public Member Functions

 NONCOPYABLE (BufferVisitor_Dump)
 
 BufferVisitor_Dump (std::ostream &stream)
 
void OnSync (double time)
 
void OnEvent (double time, const char *id)
 
void OnEnter (double time, const char *id)
 
void OnLeave (double time)
 
void OnAttribute (const std::string &attr)
 

Public Attributes

std::ostream & m_Stream
 

Detailed Description

Visitor class that dumps events as JSON.

TODO: this is pretty inefficient (in implementation and in output format).

Constructor & Destructor Documentation

◆ BufferVisitor_Dump()

BufferVisitor_Dump::BufferVisitor_Dump ( std::ostream &  stream)
inline

Member Function Documentation

◆ NONCOPYABLE()

BufferVisitor_Dump::NONCOPYABLE ( BufferVisitor_Dump  )

◆ OnAttribute()

void BufferVisitor_Dump::OnAttribute ( const std::string &  attr)
inline

◆ OnEnter()

void BufferVisitor_Dump::OnEnter ( double  time,
const char *  id 
)
inline

◆ OnEvent()

void BufferVisitor_Dump::OnEvent ( double  time,
const char *  id 
)
inline

◆ OnLeave()

void BufferVisitor_Dump::OnLeave ( double  time)
inline

◆ OnSync()

void BufferVisitor_Dump::OnSync ( double  time)
inline

Member Data Documentation

◆ m_Stream

std::ostream& BufferVisitor_Dump::m_Stream

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