Class for saving rw::core::PropertyMap to XML.  
 More...
#include <DOMCorePropertyMapSaver.hpp>
Class for saving rw::core::PropertyMap to XML. 
The saver is capable of saving all types defined in rw::core::PropertyType.
Implemented using RobWork DOM parser abstraction. 
◆ createDOMDocument()
Creates DOMDocument for map. 
- Exceptions
- 
  
  
- Parameters
- 
  
    | map | [in] Map of properties |  | parser | [in] DOMParser to use |  
 
- Returns
- DOMDocument containing properties. 
 
 
◆ save() [1/3]
Saves the properties of map to file named filename. 
- Exceptions
- 
  
  
- Parameters
- 
  
    | map | [in] Map of properties to save |  | filename | [in] Filename |  
 
 
 
◆ save() [2/3]
Saves properties of a PropertyMap as childs to element. 
Constructs element representing the properties in map and adds these as childs to element.
Throws rw::core::Expcetion if the type of a property is not supported.
- Parameters
- 
  
    | map | [in] Map of properties to save. |  | parent | [in] DOMDocument which should contain the PropertyMap representation |  
 
 
 
◆ save() [3/3]
Writes a single property to a DOMElement. 
Constructs a new DOMElement for the document parent and writes the property to it.
- Exceptions
- 
  
  
- Parameters
- 
  
    | property | [in] Property to save |  | parent | [in] DOMDocument which should contain the property representation |  
 
 
 
◆ write()
Writes the properties of map to outstream. 
- Exceptions
- 
  
  
- Parameters
- 
  
    | map | [in] Map of properties to save |  | outstream | [in] Output stream |  
 
 
 
The documentation for this class was generated from the following file:
- DOMCorePropertyMapSaver.hpp