#include <OpenMS/FORMAT/HANDLERS/FeatureXMLHandler.h>
This class can be used to save the content of a FeatureMap into an XML file. The meta information (encapsulated by class ExperimentalSettings) is stored according to the mzData format. The features and their members are stored in a proprietary format (see funtion writeTo(stream& os) for details).
Public Member Functions | |
virtual void | endElement (const XMLCh *const , const XMLCh *const , const XMLCh *const qname) |
Parsing method for closing tags. | |
virtual void | startElement (const XMLCh *const , const XMLCh *const , const XMLCh *const qname, const xercesc::Attributes &attributes) |
Parsing method for opening tags. | |
virtual void | characters (const XMLCh *const chars, unsigned int length) |
Parsing method for character data. | |
void | writeTo (std::ostream &os) |
Writes the contents to a stream. | |
void | setOptions (const PeakFileOptions &options) |
Sets the options. | |
Constructors and destructor | |
FeatureXMLHandler (FeatureMap< Feature > &map, const String &filename, const String &version) | |
Constructor for reading. | |
FeatureXMLHandler (const FeatureMap< Feature > &map, const String &filename, const String &version) | |
Constructor for writing. | |
virtual | ~FeatureXMLHandler () |
Destructor. | |
Protected Attributes | |
FeatureMap< Feature > * | map_ |
Feature map pointer for reading. | |
const FeatureMap< Feature > * | cmap_ |
Feature map pointer for writing. | |
PeakFileOptions | options_ |
Options that can be set. | |
UInt | dim_ |
current dimension of the feature position, quality, or convex hull point | |
bool | in_description_ |
temporary datastructures to hold parsed data | |
Feature | feature_ |
ModelDescription< 2 > * | model_desc_ |
Param | param_ |
ConvexHull2D | current_chull_ |
DPosition< 2 > | hull_position_ |
std::stringstream | exp_sett_ |
stream to collect experimental settings |
FeatureXMLHandler | ( | FeatureMap< Feature > & | map, | |
const String & | filename, | |||
const String & | version | |||
) | [inline] |
Constructor for reading.
FeatureXMLHandler | ( | const FeatureMap< Feature > & | map, | |
const String & | filename, | |||
const String & | version | |||
) | [inline] |
Constructor for writing.
virtual ~FeatureXMLHandler | ( | ) | [inline, virtual] |
Destructor.
virtual void endElement | ( | const XMLCh * | uri, | |
const XMLCh * | localname, | |||
const XMLCh *const | qname | |||
) | [virtual] |
virtual void startElement | ( | const XMLCh * | uri, | |
const XMLCh * | localname, | |||
const XMLCh *const | qname, | |||
const xercesc::Attributes & | attrs | |||
) | [virtual] |
virtual void characters | ( | const XMLCh *const | chars, | |
unsigned int | length | |||
) | [virtual] |
void writeTo | ( | std::ostream & | os | ) | [virtual] |
void setOptions | ( | const PeakFileOptions & | options | ) | [inline] |
Sets the options.
FeatureMap<Feature>* map_ [protected] |
Feature map pointer for reading.
const FeatureMap<Feature>* cmap_ [protected] |
Feature map pointer for writing.
PeakFileOptions options_ [protected] |
Options that can be set.
ModelDescription<2>* model_desc_ [protected] |
ConvexHull2D current_chull_ [protected] |
DPosition<2> hull_position_ [protected] |
std::stringstream exp_sett_ [protected] |
stream to collect experimental settings
bool in_description_ [protected] |
Generated Tue Apr 1 15:36:49 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |