libNuML 1.1.1
Library for reading / writing NuML documents
NUMLError.cpp File Reference
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <sbml/xml/XMLError.h>
#include <numl/NUMLError.h>
#include <numl/NUMLErrorTable.h>

Classes

struct  numlCategoryString
 

Functions

static LIBNUML_CPP_NAMESPACE_BEGIN const unsigned int getSeverityForEntry (unsigned int index, unsigned int level, unsigned int version)
 Helper function for NUMLError(). More...
 

Variables

static struct numlCategoryString numlCategoryStringTable []
 
static unsigned int numlCategoryStringTableSize = sizeof(numlCategoryStringTable)/sizeof(numlCategoryStringTable[0])
 

Function Documentation

◆ getSeverityForEntry()

static LIBNUML_CPP_NAMESPACE_BEGIN const unsigned int getSeverityForEntry ( unsigned int  index,
unsigned int  level,
unsigned int  version 
)
static

Helper function for NUMLError().

Takes an index, NUML level and version, and returns the appropriate field for the severity code out of the errorTable entry.

Variable Documentation

◆ numlCategoryStringTable

struct numlCategoryString numlCategoryStringTable[]
static
Initial value:
= {
{ LIBNUML_CAT_NUML, "General NUML conformance" },
{ LIBNUML_CAT_NUML_L1_COMPAT, "Translation to NUML L1V1" },
{ LIBNUML_CAT_NUML_L1V1_COMPAT, "Translation to NUML L1V1" },
{ LIBNUML_CAT_GENERAL_CONSISTENCY, "NUML component consistency" },
{ LIBNUML_CAT_IDENTIFIER_CONSISTENCY, "NUML identifier consistency" },
{ LIBNUML_CAT_INTERNAL_CONSISTENCY, "Internal consistency" }
}
@ LIBNUML_CAT_NUML_L1_COMPAT
Category of errors that can only occur during attempted translation from one Level/Version of NUML to...
Definition: NUMLError.h:152
@ LIBNUML_CAT_IDENTIFIER_CONSISTENCY
Category of errors that can occur while validating symbol identifiers in a numl objects.
Definition: NUMLError.h:169
@ LIBNUML_CAT_INTERNAL_CONSISTENCY
Category of errors that can occur while validating libNUML's internal representation of NUML construc...
Definition: NUMLError.h:179
@ LIBNUML_CAT_NUML_L1V1_COMPAT
Category of errors that can only occur during attempted translation from one Level/Version of NUML to...
Definition: NUMLError.h:158
@ LIBNUML_CAT_NUML
General NUML error not falling into another category below.
Definition: NUMLError.h:149
@ LIBNUML_CAT_GENERAL_CONSISTENCY
Category of errors that can occur while validating general NUML constructs.
Definition: NUMLError.h:163

◆ numlCategoryStringTableSize

unsigned int numlCategoryStringTableSize = sizeof(numlCategoryStringTable)/sizeof(numlCategoryStringTable[0])
static