libetonyek::IWORKOutputManager Class Reference

A manager for output elements. More...

#include <IWORKOutputManager.h>

Public Member Functions

 IWORKOutputManager ()
 
 ~IWORKOutputManager ()
 
void push ()
 Push a new output element onto the stack. More...
 
void pop ()
 Pop a output element from the stack. More...
 
IWORKOutputID_t save ()
 Save the current output element. More...
 
IWORKOutputElements & get (IWORKOutputID_t id)
 Get output element with ID id. More...
 
const IWORKOutputElements & get (IWORKOutputID_t id) const
 Get output element with ID id. More...
 
IWORKOutputElements & getCurrent ()
 Get the current output element. More...
 
const IWORKOutputElements & getCurrent () const
 Get the current output element. More...
 

Private Types

typedef std::deque
< IWORKOutputElements > 
OutputList_t
 
typedef std::stack
< IWORKOutputElements > 
OutputStack_t
 

Private Member Functions

 IWORKOutputManager (const IWORKOutputManager &)
 
IWORKOutputManager & operator= (const IWORKOutputManager &)
 

Private Attributes

OutputStack_t m_active
 
OutputList_t m_saved
 

Detailed Description

A manager for output elements.

It keeps a stack of currently opened output elements and a list of saved output elements.

There is always at least one output element on the stack.

Member Typedef Documentation

Constructor & Destructor Documentation

libetonyek::IWORKOutputManager::IWORKOutputManager ( const IWORKOutputManager &  )
private
libetonyek::IWORKOutputManager::IWORKOutputManager ( )
libetonyek::IWORKOutputManager::~IWORKOutputManager ( )

Member Function Documentation

IWORKOutputElements & libetonyek::IWORKOutputManager::get ( IWORKOutputID_t  id)

Get output element with ID id.

  • [in] id ID of the output element to get.

Referenced by libetonyek::PAGCollector::writePageGroupsObjects().

const IWORKOutputElements & libetonyek::IWORKOutputManager::get ( IWORKOutputID_t  id) const

Get output element with ID id.

  • [in] id ID of the output element to get.
const IWORKOutputElements & libetonyek::IWORKOutputManager::getCurrent ( ) const

Get the current output element.

IWORKOutputManager& libetonyek::IWORKOutputManager::operator= ( const IWORKOutputManager &  )
private
void libetonyek::IWORKOutputManager::pop ( )
void libetonyek::IWORKOutputManager::push ( )

Push a new output element onto the stack.

Referenced by IWORKOutputManager(), libetonyek::PAGCollector::openPageGroup(), and libetonyek::KEYCollector::startLayer().

IWORKOutputID_t libetonyek::IWORKOutputManager::save ( )

Save the current output element.

It remains on the stack.

Returns
The ID of the saved output element.

Referenced by libetonyek::PAGCollector::closePageGroup(), and libetonyek::KEYCollector::collectLayer().

Member Data Documentation

OutputStack_t libetonyek::IWORKOutputManager::m_active
private
OutputList_t libetonyek::IWORKOutputManager::m_saved
private

Referenced by get(), and save().


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

Generated for libetonyek by doxygen 1.8.5