Used to load and store TransformationXML files. More...
#include <OpenMS/FORMAT/TransformationXMLFile.h>
Public Member Functions | |
| TransformationXMLFile () | |
| Constructor. | |
| void | load (const String &filename, TransformationDescription &transformation) |
| Loads the transformation from an TransformationXML file. | |
| void | store (String filename, const TransformationDescription &transformation) |
| Stores the data in an TransformationXML file. | |
Protected Member Functions | |
| virtual void | startElement (const XMLCh *const , const XMLCh *const , const XMLCh *const qname, const xercesc::Attributes &attributes) |
Protected Attributes | |
Members for use during loading data | |
| Param | params_ |
| Param to fill in during parse. | |
| TransformationDescription::DataPoints | data_ |
| Data vector. | |
| String | model_type_ |
| Model type. | |
Used to load and store TransformationXML files.
This class is used to load and store documents that implement the schema of TransformationXML files.
A documented schema for this format can be found at http://open-ms.sourceforge.net/schemas/.
Constructor.
| void load | ( | const String & | filename, | |
| TransformationDescription & | transformation | |||
| ) |
Loads the transformation from an TransformationXML file.
The information is read in and the information is stored in the corresponding variables
| Exception::FileNotFound | is thrown if the file could not be opened | |
| Exception::ParseError | is thrown if an error occurs during parsing |
| virtual void startElement | ( | const XMLCh * | const, | |
| const XMLCh * | const, | |||
| const XMLCh *const | qname, | |||
| const xercesc::Attributes & | attributes | |||
| ) | [protected, virtual] |
| void store | ( | String | filename, | |
| const TransformationDescription & | transformation | |||
| ) |
Stores the data in an TransformationXML file.
The data is read in and stored in the file named 'filename'.
| Exception::UnableToCreateFile | is thrown if the file could not be created | |
| Exception::IllegalArgument | is thrown if unsupported parameter types have been set |
TransformationDescription::DataPoints data_ [protected] |
Data vector.
String model_type_ [protected] |
Model type.
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:54 using doxygen 1.7.1 |