Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Member Functions

TransformationXMLFile Class Reference
[File IO]

Used to load and store TransformationXML files. More...

#include <OpenMS/FORMAT/TransformationXMLFile.h>

Inheritance diagram for TransformationXMLFile:
XMLHandler XMLFile DefaultHandler

List of all members.

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.

Detailed Description

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 & Destructor Documentation

Constructor.


Member Function Documentation

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

Exceptions:
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'.

Exceptions:
Exception::UnableToCreateFile is thrown if the file could not be created
Exception::IllegalArgument is thrown if unsupported parameter types have been set

Member Data Documentation

Data vector.

String model_type_ [protected]

Model type.

Param params_ [protected]

Param to fill in during parse.


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:54 using doxygen 1.7.1