Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:23
const String & getVersion() const
return the version of the schema
XMLFile()
Default constructor.
String schema_version_
Version string.
Definition: XMLFile.h:79
String enforced_encoding_
Encoding string that replaces the encoding (system dependent or specified in the XML)....
Definition: XMLFile.h:82
void enforceEncoding_(const String &encoding)
void parse_(const String &filename, XMLHandler *handler)
Parses the XML file given by filename using the handler given by handler.
XMLFile(const String &schema_location, const String &version)
Constructor that sets the schema location.
void save_(const String &filename, XMLHandler *handler) const
Stores the contents of the XML handler given by handler in the file given by filename.
virtual ~XMLFile()
Destructor.
String schema_location_
XML schema file location.
Definition: XMLFile.h:76
void parseBuffer_(const std::string &buffer, XMLHandler *handler)
Parses the in-memory buffer given by buffer using the handler given by handler.
bool isValid(const String &filename, std::ostream &os)
Checks if a file validates against the XML schema.
Base class for XML handlers.
Definition: XMLHandler.h:302
A more convenient string class.
Definition: String.h:34
String encodeTab(const String &to_encode)
Encodes tabs '\t' in the string as 	 and returns the encoded string.
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19