Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

FeatureXMLHandler Class Reference

#include <OpenMS/FORMAT/HANDLERS/FeatureXMLHandler.h>

Inheritance diagram for FeatureXMLHandler:

XMLHandler xercesc::DefaultHandler

List of all members.


Detailed Description

XML Handler for a FeatureMap.

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


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void endElement ( const XMLCh *  uri,
const XMLCh *  localname,
const XMLCh *const   qname 
) [virtual]

Parsing method for closing tags.

Reimplemented from XMLHandler.

virtual void startElement ( const XMLCh *  uri,
const XMLCh *  localname,
const XMLCh *const   qname,
const xercesc::Attributes &  attrs 
) [virtual]

Parsing method for opening tags.

Reimplemented from XMLHandler.

virtual void characters ( const XMLCh *const   chars,
unsigned int  length 
) [virtual]

Parsing method for character data.

Reimplemented from XMLHandler.

void writeTo ( std::ostream &  os  )  [virtual]

Writes the contents to a stream.

Reimplemented from XMLHandler.

void setOptions ( const PeakFileOptions options  )  [inline]

Sets the options.


Member Data Documentation

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.

Feature feature_ [protected]

ModelDescription<2>* model_desc_ [protected]

Param param_ [protected]

ConvexHull2D current_chull_ [protected]

DPosition<2> hull_position_ [protected]

std::stringstream exp_sett_ [protected]

stream to collect experimental settings

UInt dim_ [protected]

current dimension of the feature position, quality, or convex hull point

bool in_description_ [protected]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:49 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1