49LIBNUML_CPP_NAMESPACE_BEGIN
59#define IdCheckON 0x01;
62#define IdCheckOFF 0xfe;
65#define NUMLCheckON 0x02;
68#define NUMLCheckOFF 0xfd;
71#define SBOCheckON 0x04;
74#define SBOCheckOFF 0xfb;
77#define MathCheckON 0x08;
80#define MathCheckOFF 0xf7;
83#define UnitsCheckON 0x10;
86#define UnitsCheckOFF 0xef;
88#ifndef OverdeterCheckON
89#define OverdeterCheckON 0x20;
91#ifndef OverdeterCheckOFF
92#define OverdeterCheckOFF 0xdf;
94#ifndef PracticeCheckON
95#define PracticeCheckON 0x40;
97#ifndef PracticeCheckOFF
98#define PracticeCheckOFF 0xbf;
101#define AllChecksON 0x7f;
183 NUMLDocument (
unsigned int level = 0,
unsigned int version = 0);
366 void printErrors (std::ostream& stream = std::cerr)
const;
435 virtual LIBSBML_CPP_NAMESPACE_QUALIFIER XMLNamespaces*
getNamespaces()
const;
451 virtual void writeElements (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
460 virtual NMBase*
createObject (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream& stream);
469 void readAttributes (
const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes& attributes);
477 virtual void writeAttributes (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
513LIBNUML_CPP_NAMESPACE_END
522LIBNUML_CPP_NAMESPACE_BEGIN
564 ,
unsigned int version );
571 ,
unsigned int version );
649LIBNUML_CPP_NAMESPACE_END
LIBNUML_EXTERN int NUMLDocument_setLevelAndVersionStrict(NUMLDocument_t *d, unsigned int level, unsigned int version)
Sets the NUML Level and Version of this NUMLDocument, attempting to convert the model as needed.
Definition NUMLDocument.cpp:960
LIBNUML_EXTERN NUMLDocument_t * NUMLDocument_clone(const NUMLDocument_t *d)
Creates and returns a deep copy of the given NUMLDocument_t structure.
Definition NUMLDocument.cpp:848
LIBNUML_EXTERN NUMLDocument_t * NUMLDocument_create()
Creates a new, empty NUMLDocument_t structure.
Definition NUMLDocument.cpp:799
LIBNUML_EXTERN unsigned int NUMLDocument_getNumErrors(const NUMLDocument_t *d)
Returns the number of errors or warnings encountered during parsing, consistency checking,...
Definition NUMLDocument.cpp:1008
LIBNUML_EXTERN int NUMLDocument_setLevelAndVersion(NUMLDocument_t *d, unsigned int level, unsigned int version)
Sets the NUML Level and Version of this NUMLDocument, attempting to convert the ResultComponent as ne...
Definition NUMLDocument.cpp:914
LIBNUML_EXTERN void NUMLDocument_free(NUMLDocument_t *d)
Frees the given NUMLDocument_t structure.
Definition NUMLDocument.cpp:833
LIBNUML_EXTERN NUMLDocument_t * NUMLDocument_createWithLevelAndVersion(unsigned int level, unsigned int version)
Creates a new, empty NUMLDocument_t structure with given values for the NUML Level and Version.
Definition NUMLDocument.cpp:820
LIBNUML_EXTERN void NUMLDocument_printErrors(NUMLDocument_t *d, FILE *stream)
Prints to the given output stream all the errors or warnings encountered during parsing,...
Definition NUMLDocument.cpp:1033
LIBNUML_EXTERN unsigned int NUMLDocument_getVersion(const NUMLDocument_t *d)
Returns the Version within the NUML Level of the given NUMLDocument_t structure.
Definition NUMLDocument.cpp:879
LIBNUML_EXTERN const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLNamespaces_t * NUMLDocument_getNamespaces(NUMLDocument_t *d)
Returns a list of XMLNamespaces_t associated with the XML content of this NUML document.
Definition NUMLDocument.cpp:1078
LIBNUML_EXTERN unsigned int NUMLDocument_getLevel(const NUMLDocument_t *d)
Returns the NUML Level of the given NUMLDocument_t structure.
Definition NUMLDocument.cpp:863
LIBNUML_EXTERN const NUMLError_t * NUMLDocument_getError(NUMLDocument_t *d, unsigned int n)
Returns the nth error or warning encountered during parsing, consistency checking,...
Definition NUMLDocument.cpp:988
unsigned int NUMLDocument_getDefaultLevel()
Definition NUMLDocument.cpp:1052
unsigned int NUMLDocument_getDefaultVersion()
Definition NUMLDocument.cpp:1063
NUMLErrorCategory_t
Category codes for NUMLError diagnostics.
Definition NUMLError.h:146
NUMLTypeCode_t
An enumeration of NUML types to help identify NUML objects at runtime.
Definition NUMLTypeCodes.h:34
virtual LIBSBML_CPP_NAMESPACE_QUALIFIER XMLNamespaces * getNamespaces() const
Returns the content of the "annotation" subelement of this object as a character string.
Definition NMBase.cpp:242
NUMLErrorLog * getErrorLog()
Definition NMBase.cpp:2051
virtual NMBase * createObject(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream &stream)
Subclasses should override this method to create, store, and then return an NUML object corresponding...
Definition NMBase.cpp:1715
virtual NUMLTypeCode_t getTypeCode() const
Returns the libnuml type code for this object.
Definition NMBase.cpp:624
virtual int getElementPosition() const
The NUML XML Schema is written such that the order of child elements is significant.
Definition NMBase.cpp:2041
virtual const std::string & getElementName() const =0
Returns the XML element name of this object.
virtual bool accept(NUMLVisitor &v) const =0
Accepts the given NUMLVisitor for this instance of NMBase.
virtual NMBase * clone() const =0
Creates and returns a deep copy of this NMBase object.
virtual void setNUMLDocument(NUMLDocument *d)
Sets the parent NUMLDocument of this NUML object.
Definition NMBase.cpp:435
virtual void setParentNUMLObject(NMBase *sb)
Sets the parent NUML object of this NUML object.
Definition NMBase.cpp:486
virtual void writeAttributes(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream &stream) const
Subclasses should override this method to write their XML attributes to the XMLOutputStream.
Definition NMBase.cpp:2160
virtual void readAttributes(const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes &attributes)
Subclasses should override this method to read values from the given XMLAttributes set into their spe...
Definition NMBase.cpp:2135
virtual void writeElements(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream &stream) const
Subclasses should override this method to write out their contained NUML objects as XML elements.
Definition NMBase.cpp:1694
unsigned int getNumErrors() const
Returns the number of errors or warnings mencountered during parsing, consistency checking,...
Definition NUMLDocument.cpp:525
unsigned char mApplicableValidators
Definition NUMLDocument.h:504
NUMLErrorLog mErrorLog
Definition NUMLDocument.h:502
OntologyTerms mOntologyTerms
Definition NUMLDocument.h:498
int mVersion
Definition NUMLDocument.h:496
friend class NUMLReader
Definition NUMLDocument.h:509
unsigned char mApplicableValidatorsForConversion
Definition NUMLDocument.h:505
void printErrors(std::ostream &stream=std::cerr) const
Definition NUMLDocument.cpp:540
bool conversion_errors(unsigned int errors)
Definition NUMLDocument.cpp:69
bool setLevelAndVersion(unsigned int level, unsigned int version, bool strict=true)
Sets the NUML Level and Version of this NUMLDocument instance, attempting to convert the model as nee...
Definition NUMLDocument.cpp:299
ResultComponent * createResultComponent()
Definition NUMLDocument.cpp:479
int mLevel
Definition NUMLDocument.h:495
const NUMLError * getError(unsigned int n) const
Returns the nth error or warning encountered during parsing, consistency checking,...
Definition NUMLDocument.cpp:514
friend class NMBase
Definition NUMLDocument.h:508
static unsigned int getDefaultVersion()
The default Version of new NUMLDocument objects.
Definition NUMLDocument.cpp:138
OntologyTerm * createOntologyTerm()
Definition NUMLDocument.cpp:446
ResultComponents mResultComponents
Definition NUMLDocument.h:499
unsigned int getNumResultComponents() const
Get a the number of resultComponent objects in this NUMLDocument.
Definition NUMLDocument.cpp:285
OntologyTerms * getOntologyTerms()
Returns the OntologyTerms object stored in this NUMLDocument.
Definition NUMLDocument.cpp:248
static unsigned int getDefaultLevel()
The default NUML Level of new NUMLDocument objects.
Definition NUMLDocument.cpp:121
unsigned int getNumOntologyTerms() const
Get a the number of ontologyTerm objects in this NUMLDocument.
Definition NUMLDocument.cpp:257
NUMLDocument(unsigned int level=0, unsigned int version=0)
Creates a new NUMLDocument, optionally with given values for the NUML Level and Version.
Definition NUMLDocument.cpp:149
ResultComponent * getResultComponent(unsigned int index)
Definition NUMLDocument.cpp:1086
ResultComponents * getResultComponents()
Returns the ResultComponents object stored in this NUMLDocument.
Definition NUMLDocument.cpp:276
contains all error information collected
Definition NUMLError.h:235
the error log containing all errors / warnings encountered
Definition NUMLErrorLog.h:39
Implementation of the Visitor design pattern, for operations on NUML objects.
Definition NUMLVisitor.h:73
ontology terms store information about what individual elements represents
Definition OntologyTerm.h:44
Definition OntologyTerm.h:301
stores the result component
Definition ResultComponent.h:57
Definition ResultComponent.h:323
#define BEGIN_C_DECLS
Definition extern.h:112
#define LIBNUML_EXTERN
Begin svn Header.
Definition extern.h:104
#define END_C_DECLS
Definition extern.h:113
CLASS_OR_STRUCT NUMLDocument NUMLDocument_t
This represents the numl document that contains all information.
Definition numlfwd.h:88
CLASS_OR_STRUCT XMLNamespaces XMLNamespaces_t
Definition numlfwd.h:247
CLASS_OR_STRUCT NUMLError NUMLError_t
contains all error information collected
Definition numlfwd.h:190