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;
123 static unsigned int getDefaultLevel ();
141 static unsigned int getDefaultVersion ();
183 NUMLDocument (
unsigned int level = 0,
unsigned int version = 0);
221 unsigned int getNumOntologyTerms ()
const;
291 unsigned int getNumResultComponents()
const;
303 bool setLevelAndVersion (
unsigned int level,
unsigned int version,
328 const NUMLError* getError (
unsigned int n)
const;
337 unsigned int getNumErrors ()
const;
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;
482 bool conversion_errors(
unsigned int errors);
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
This is the base class for all numl objects.
Definition: NMBase.h:71
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
This represents the numl document that contains all information.
Definition: NUMLDocument.h:107
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
unsigned char mApplicableValidatorsForConversion
Definition: NUMLDocument.h:505
int mLevel
Definition: NUMLDocument.h:495
ResultComponents mResultComponents
Definition: NUMLDocument.h:499
contains all error information collected
Definition: NUMLError.h:235
the error log containing all errors / warnings encountered
Definition: NUMLErrorLog.h:39
The reader class implementing reading NuML documents from file / string.
Definition: NUMLReader.h:45
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
Definition: numlfwd.h:88
CLASS_OR_STRUCT NUMLError NUMLError_t
Definition: numlfwd.h:190
CLASS_OR_STRUCT XMLNamespaces XMLNamespaces_t
Definition: numlfwd.h:247