GVectors::SaveItems Class Reference

Writes items to disk using the given FileWriter. More...

#include <vstorefuncs.h>

List of all members.

Public Member Functions

 SaveItems (vslevel_t l, FileWriter &fw)
 Constructor.
 SaveItems (const SaveItems &si)
 Copy constructor.
 ~SaveItems ()
 Destructor.
void operator() (const VStoreItem *vsi) const
 Function object saving the items.

Private Member Functions

const SaveItemsoperator= (const SaveItems &)
 Assignment operator.

Private Attributes

vslevel_t level
 Holds the level of the items to be written.
FileWriterfilewriter
 A reference to the FileWriter object used.


Detailed Description

Writes all items stored in the vector store to disk using the given FileWriter.


Constructor & Destructor Documentation

GVectors::SaveItems::SaveItems ( vslevel_t  l,
FileWriter fw 
) [inline, explicit]

Constructor.

Parameters:
l The level to start with.
fw A reference to a FileWriter implementation.

GVectors::SaveItems::SaveItems ( const SaveItems si  )  [inline]

Copy constructor.

Parameters:
si A const reference to a SaveItems object.

GVectors::SaveItems::~SaveItems (  )  [inline]

Destructor. Does nothing. Just for completeness.


Member Function Documentation

const SaveItems& GVectors::SaveItems::operator= ( const SaveItems  )  [inline, private]

Assginment operator. Not used.

void SaveItems::operator() ( const VStoreItem vsi  )  const

Calls the VStoreItem::save_items() method for the VStoreItem pointed to by vsi.

Parameters:
vsi A const pointer to a VStoreItem.


Member Data Documentation

vslevel_t GVectors::SaveItems::level [private]

Holds the level of the items to be written.

FileWriter& GVectors::SaveItems::filewriter [private]

A reference to the FileWriter object used to write the data.


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 19:37:30 2007 for libgvectors by  doxygen 1.4.7