Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Trace Class Reference
Inheritance diagram for Trace:
Collaboration diagram for Trace:

Public Member Functions

 Trace (size_t maxSize)
 
virtual ~Trace ()
 
virtual void NotifyLoad (const Path &pathname, size_t size)
 
virtual void NotifyStore (const Path &pathname, size_t size)
 
virtual Status Load (const OsPath &pathname)
 load entries from file. More...
 
virtual Status Store (const OsPath &pathname) const
 store all entries into a file. More...
 
virtual const TraceEntryEntries () const
 
virtual size_t NumEntries () const
 
- Public Member Functions inherited from ITrace
virtual ~ITrace ()
 
virtual void NotifyLoad (const Path &pathname, size_t size)=0
 
virtual void NotifyStore (const Path &pathname, size_t size)=0
 
virtual Status Store (const OsPath &pathname) const =0
 store all entries into a file. More...
 
virtual Status Load (const OsPath &pathname)=0
 load entries from file. More...
 
virtual const TraceEntryEntries () const =0
 
virtual size_t NumEntries () const =0
 

Private Member Functions

void * Allocate ()
 

Private Attributes

Pool m_pool
 

Constructor & Destructor Documentation

◆ Trace()

Trace::Trace ( size_t  maxSize)
inline

◆ ~Trace()

virtual Trace::~Trace ( )
inlinevirtual

Member Function Documentation

◆ Allocate()

void * Trace::Allocate ( )
inlineprivate

◆ Entries()

virtual const TraceEntry * Trace::Entries ( ) const
inlinevirtual

Implements ITrace.

◆ Load()

virtual Status Trace::Load ( const OsPath pathname)
inlinevirtual

load entries from file.

Parameters
pathname(native, absolute)

replaces any existing entries.

Implements ITrace.

◆ NotifyLoad()

virtual void Trace::NotifyLoad ( const Path pathname,
size_t  size 
)
inlinevirtual

Implements ITrace.

◆ NotifyStore()

virtual void Trace::NotifyStore ( const Path pathname,
size_t  size 
)
inlinevirtual

Implements ITrace.

◆ NumEntries()

virtual size_t Trace::NumEntries ( ) const
inlinevirtual

Implements ITrace.

◆ Store()

virtual Status Trace::Store ( const OsPath pathname) const
inlinevirtual

store all entries into a file.

Parameters
pathname(native, absolute)

note: the file format is text-based to allow human inspection and because storing filename strings in a binary format would be a bit awkward.

Implements ITrace.

Member Data Documentation

◆ m_pool

Pool Trace::m_pool
private

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