OpenMS
UnimodXMLFile Class Reference

Used to load XML files from unimod.org files. More...

#include <OpenMS/FORMAT/UnimodXMLFile.h>

Inheritance diagram for UnimodXMLFile:
[legend]
Collaboration diagram for UnimodXMLFile:
[legend]

Public Member Functions

 UnimodXMLFile ()
 Default constructor. More...
 
 ~UnimodXMLFile () override
 Destructor. More...
 
void load (const String &filename, std::vector< ResidueModification * > &modifications)
 loads data from unimod.xml file More...
 
- Public Member Functions inherited from XMLFile
 XMLFile ()
 Default constructor. More...
 
 XMLFile (const String &schema_location, const String &version)
 Constructor that sets the schema location. More...
 
virtual ~XMLFile ()
 Destructor. More...
 
bool isValid (const String &filename, std::ostream &os)
 Checks if a file validates against the XML schema. More...
 
const StringgetVersion () const
 return the version of the schema More...
 

Private Member Functions

 UnimodXMLFile (const UnimodXMLFile &rhs)
 Not implemented. More...
 
UnimodXMLFileoperator= (const UnimodXMLFile &rhs)
 Not implemented. More...
 

Additional Inherited Members

- Protected Member Functions inherited from XMLFile
void parse_ (const String &filename, XMLHandler *handler)
 Parses the XML file given by filename using the handler given by handler. More...
 
void parseBuffer_ (const std::string &buffer, XMLHandler *handler)
 Parses the in-memory buffer given by buffer using the handler given by handler. More...
 
void save_ (const String &filename, XMLHandler *handler) const
 Stores the contents of the XML handler given by handler in the file given by filename. More...
 
void enforceEncoding_ (const String &encoding)
 
- Protected Attributes inherited from XMLFile
String schema_location_
 XML schema file location. More...
 
String schema_version_
 Version string. More...
 
String enforced_encoding_
 Encoding string that replaces the encoding (system dependent or specified in the XML). Disabled if empty. Used as a workaround for XTandem output xml. More...
 

Detailed Description

Used to load XML files from unimod.org files.

Constructor & Destructor Documentation

◆ UnimodXMLFile() [1/2]

Default constructor.

◆ ~UnimodXMLFile()

~UnimodXMLFile ( )
override

Destructor.

◆ UnimodXMLFile() [2/2]

UnimodXMLFile ( const UnimodXMLFile rhs)
private

Not implemented.

Member Function Documentation

◆ operator=()

UnimodXMLFile& operator= ( const UnimodXMLFile rhs)
private

Not implemented.