XMLMXAAttributeWriter Class Reference

Delegate type class that writes attributes to an xml file. More...

List of all members.

Public Member Functions

 XMLMXAAttributeWriter (boost::shared_ptr< std::ofstream > ofstreamPtr)
virtual ~XMLMXAAttributeWriter ()
std::string indent (int depth)
int32 writeAttribute (const std::string &attributeKey, IMXAArray::Pointer attribute)
 Writes the attribute to the xml file.
template<typename T>
int32 writeAttributeData (const std::string &attributeKey, IMXAArray::Pointer attribute)
 Template based method to write an attribute to an xml file.
int32 writeStringAttributeData (const std::string &attributeKey, IMXAArray::Pointer attribute)
 Writes a string based attribute to an xml file.

Private Member Functions

 XMLMXAAttributeWriter (const XMLMXAAttributeWriter &)
void operator= (const XMLMXAAttributeWriter &)

Private Attributes

boost::shared_ptr< std::ofstream > _ofstreamPtr


Detailed Description

Delegate type class that writes attributes to an xml file.

Author:
mjackson
Date:
Jan 15, 2008
Version:
Revision
1.2


Constructor & Destructor Documentation

XMLMXAAttributeWriter::XMLMXAAttributeWriter ( boost::shared_ptr< std::ofstream >  ofstreamPtr  )  [inline]

virtual XMLMXAAttributeWriter::~XMLMXAAttributeWriter (  )  [inline, virtual]

XMLMXAAttributeWriter::XMLMXAAttributeWriter ( const XMLMXAAttributeWriter  )  [private]


Member Function Documentation

std::string XMLMXAAttributeWriter::indent ( int  depth  )  [inline]

int32 XMLMXAAttributeWriter::writeAttribute ( const std::string &  attributeKey,
IMXAArray::Pointer  attribute 
) [inline]

Writes the attribute to the xml file.

Parameters:
attributeKey The name of the attribute to write
attribute The attribute to write
Returns:
Error condition - Negative is error

template<typename T>
int32 XMLMXAAttributeWriter::writeAttributeData ( const std::string &  attributeKey,
IMXAArray::Pointer  attribute 
) [inline]

Template based method to write an attribute to an xml file.

Parameters:
attributeKey The name of the attribute to write
attribute The attribute to write to the xml file
Returns:
Error Condition - Negative is Error.

int32 XMLMXAAttributeWriter::writeStringAttributeData ( const std::string &  attributeKey,
IMXAArray::Pointer  attribute 
) [inline]

Writes a string based attribute to an xml file.

Parameters:
attributeKey The name of the attribute to write
attribute The attribute to write
Returns:
Error Condition - Negative is error

void XMLMXAAttributeWriter::operator= ( const XMLMXAAttributeWriter  )  [private]


Member Data Documentation

boost::shared_ptr<std::ofstream> XMLMXAAttributeWriter::_ofstreamPtr [private]


The documentation for this class was generated from the following file:
Generated on Tue Nov 17 18:43:16 2009 for MXADataModel by  doxygen 1.5.2