dtDAL::MapWriter Class Reference

Writes a map out to an XML file. More...

#include <mapxml.h>

List of all members.

Public Member Functions

 MapWriter ()
void Save (Map &map, const std::string &filePath)
 Saves the map to an XML file.

Protected Member Functions

virtual ~MapWriter ()

Classes

class  MapFormatTarget
 Protected destructor so that this could be subclassed.


Detailed Description

Writes a map out to an XML file.

Constructor & Destructor Documentation

dtDAL::MapWriter::MapWriter (  ) 

dtDAL::MapWriter::~MapWriter (  )  [protected, virtual]


Member Function Documentation

void dtDAL::MapWriter::Save ( Map map,
const std::string &  filePath 
)

Saves the map to an XML file.

The create time will be set on the map if this is the first time it has been saved.

Parameters:
map the map to save.
filePath the path to the file to save. The map has a file name property, but it does not include any directories needed or the extension.
Exceptions:
ExceptionEnum::MapSaveError if any errors occur saving the file.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008