|
OpenMS
2.5.0
|
Go to the documentation of this file.
39 #include <xercesc/sax/ErrorHandler.hpp>
53 private xercesc::ErrorHandler
71 bool isValid(
const String& filename,
const String& schema, std::ostream& os = std::cerr);
83 void warning(
const xercesc::SAXParseException&
exception)
override;
84 void error(
const xercesc::SAXParseException&
exception)
override;
85 void fatalError(
const xercesc::SAXParseException&
exception)
override;
86 void resetErrors()
override;
bool valid_
Flag if the validated file is valid.
Definition: XMLValidator.h:75
OpenMS identification format (.idXML)
Definition: FileTypes.h:66
Base class for TOPP applications.
Definition: TOPPBase.h:144
MzData file (.mzData)
Definition: FileTypes.h:63
File adapter for MzData files.
Definition: MzDataFile.h:53
MzML file (.mzML)
Definition: FileTypes.h:72
MzXML file (.mzXML)
Definition: FileTypes.h:64
TPP pepXML file (.pepXML)
Definition: FileTypes.h:75
bool isValid(const String &filename, std::ostream &os=std::cerr)
Checks if a file validates against the XML schema.
File adapter for MzML files.
Definition: MzMLFile.h:55
A more convenient string class.
Definition: String.h:58
bool isValid(const String &filename, const String &schema, std::ostream &os=std::cerr)
Returns if an XML file is valid for given a schema file.
OpenMS consensus map format (.consensusXML)
Definition: FileTypes.h:67
OpenMS parameters file (.ini)
Definition: FileTypes.h:69
The file pendant of the Param class used to load and store the param datastructure as paramXML.
Definition: ParamXMLFile.h:49
int exception
(Used by various macros. Indicates a rough category of the exception being caught....
File adapter for MzXML 3.1 files.
Definition: MzXMLFile.h:52
Unknown file extension.
Definition: FileTypes.h:60
Validator for XML files.
Definition: XMLValidator.h:52
const String & getVersion() const
return the version of the schema
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
File adapter for HUPO PSI TraML files.
Definition: TraMLFile.h:63
OpenMS feature file (.featureXML)
Definition: FileTypes.h:65
bool isValid(const String &filename, std::ostream &os)
Checks if a file validates against the XML schema.
Type
Actual file types enum.
Definition: FileTypes.h:58
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
std::ostream * os_
Definition: XMLValidator.h:79
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
String filename_
File name of validated file (for error messages)
Definition: XMLValidator.h:77
TraML (HUPO PSI format) for transitions (.traML)
Definition: FileTypes.h:81
Used to load and store PepXML files.
Definition: PepXMLFile.h:62
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:61
Used to load and store idXML files.
Definition: IdXMLFile.h:63
static String typeToName(Type type)
Returns the name/extension of the type.