ConfigMatrix::ConfigCell Class Reference

Configuration of a single cell on the matrix. More...

#include <ConfigMatrix.h>

Inheritance diagram for ConfigMatrix::ConfigCell:

BaseConfig List of all members.

Public Member Functions

 ConfigCell (ConfigMatrix::SizeType xIndex, ConfigMatrix::SizeType yIndex, const Object::Config *objectConfig)
 Constructor.
 ConfigCell (TiXmlElement *node)
 Constructs object using data from XML node.
virtual ~ConfigCell ()
 Destructor.
virtual TiXmlElement * CreateXmlNode () const
 This class can not create XML node alone, exception will be thrown.
ConfigMatrix::SizeType GetXIndex () const
 Returns x index.
ConfigMatrix::SizeType GetYIndex () const
 Returns y index.
const Object::ConfigGetObjectConfig () const
 Returns object's config.
void SetXIndex (ConfigMatrix::SizeType index)
 Sets x index.
void SetYIndex (ConfigMatrix::SizeType index)
 Sets y index.
void SetObjectConfig (const Object::Config *object)
 Sets object's config.

Private Member Functions

 ConfigCell (const ConfigCell &)
ConfigCelloperator= (const ConfigCell &)

Private Attributes

ConfigMatrix::SizeType x
 x index of the object's position
ConfigMatrix::SizeType y
 y index of the object's position
const Object::ConfigobjConfig
 Object's config.

Detailed Description

Configuration of a single cell on the matrix.


Constructor & Destructor Documentation

ConfigMatrix::ConfigCell::ConfigCell ( ConfigMatrix::SizeType  xIndex,
ConfigMatrix::SizeType  yIndex,
const Object::Config objectConfig 
) [inline]

Constructor.

Parameters:
xIndex x index of the object's position
yIndex y index of the object's position
objectConfig Object's config
Warning: objectConfig must be allocated on the heap and it will be deleted in the destructor

ConfigMatrix::ConfigCell::ConfigCell ( TiXmlElement *  node  )  [explicit]

Constructs object using data from XML node.

virtual ConfigMatrix::ConfigCell::~ConfigCell (  )  [inline, virtual]

Destructor.

ConfigMatrix::ConfigCell::ConfigCell ( const ConfigCell  )  [private]


Member Function Documentation

TiXmlElement * ConfigMatrix::ConfigCell::CreateXmlNode (  )  const [virtual]

This class can not create XML node alone, exception will be thrown.

Implements BaseConfig.

const Object::Config* ConfigMatrix::ConfigCell::GetObjectConfig (  )  const [inline]

Returns object's config.

ConfigMatrix::SizeType ConfigMatrix::ConfigCell::GetXIndex (  )  const [inline]

Returns x index.

ConfigMatrix::SizeType ConfigMatrix::ConfigCell::GetYIndex (  )  const [inline]

Returns y index.

ConfigCell& ConfigMatrix::ConfigCell::operator= ( const ConfigCell  )  [private]

void ConfigMatrix::ConfigCell::SetObjectConfig ( const Object::Config object  )  [inline]

Sets object's config.

Parameters:
object Config of the object

void ConfigMatrix::ConfigCell::SetXIndex ( ConfigMatrix::SizeType  index  )  [inline]

Sets x index.

Parameters:
index x index to be set

void ConfigMatrix::ConfigCell::SetYIndex ( ConfigMatrix::SizeType  index  )  [inline]

Sets y index.

Parameters:
index y index to be set


Member Data Documentation

const Object::Config* ConfigMatrix::ConfigCell::objConfig [private]

Object's config.

ConfigMatrix::SizeType ConfigMatrix::ConfigCell::x [private]

x index of the object's position

ConfigMatrix::SizeType ConfigMatrix::ConfigCell::y [private]

y index of the object's position


The documentation for this class was generated from the following files:
Generated on Sun Apr 29 11:46:11 2007 for IPP/ICP2007 by  doxygen 1.4.7