24#ifndef RESULTCOMPONENT_H_
25#define RESULTCOMPONENT_H_
45LIBNUML_CPP_NAMESPACE_BEGIN
103 const std::string&
getId ()
const;
134 int setId (
const std::string& sid);
283 void writeElements(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
294 virtual NMBase*
createObject (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream& stream);
302 virtual void readAttributes (
const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes& attributes);
310 virtual void writeAttributes (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
509 virtual NMBase*
createObject (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream& stream);
514LIBNUML_CPP_NAMESPACE_END
526LIBNUML_CPP_NAMESPACE_BEGIN
539LIBNUML_CPP_NAMESPACE_END
NUMLTypeCode_t
An enumeration of NUML types to help identify NUML objects at runtime.
Definition NUMLTypeCodes.h:34
@ NUML_RESULTCOMPONENTS
Definition NUMLTypeCodes.h:40
LIBNUML_EXTERN CompositeDescription_t * ResultComponent_createCompositeDescription(ResultComponent_t *rComp)
Definition ResultComponent.cpp:725
LIBNUML_EXTERN DimensionDescription_t * ResultComponent_createDimensionDescription(ResultComponent_t *rComp)
Definition ResultComponent.cpp:718
This class stores the atomic description.
Definition AtomicDescription.h:42
This class stores the atomic values.
Definition AtomicValue.h:40
this class stores the component descriptions
Definition CompositeDescription.h:58
This class stores the composite values.
Definition CompositeValue.h:50
This class stores the dimension description.
Definition DimensionDescription.h:59
this class stores the dimension information
Definition Dimension.h:54
This is the base class for all numl objects.
Definition NMBase.h:71
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 int setId(const std::string &sid)
Definition NMBase.cpp:413
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.
NMBase(const std::string &id="", const std::string &name="")
Only subclasses may create NMBase objects.
Definition NMBase.cpp:68
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 const std::string & getId() const
Definition NMBase.cpp:220
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
NUMLList(unsigned int level, unsigned int version)
Creates a new NUMLList using the given NUML level and version values.
Definition NUMLList.cpp:28
namespace class
Definition NUMLNamespaces.h:47
Implementation of the Visitor design pattern, for operations on NUML objects.
Definition NUMLVisitor.h:73
stores the result component
Definition ResultComponent.h:57
std::string mId
Definition ResultComponent.h:316
DimensionDescription * createDimensionDescription()
Creates a new DimensionDescription inside this ResultComponent and returns it.
Definition ResultComponent.cpp:348
Dimension * getDimension()
Get the Dimension object in this ResultComponent.
Definition ResultComponent.cpp:379
Tuple * createTuple()
creates a new tuple and adds it to the dimension
Definition ResultComponent.cpp:249
CompositeValue * createCompositeValue()
Creates a new CompositeValue and add it to Dimension's list inside this ResultComponent and return it...
Definition ResultComponent.cpp:186
AtomicValue * createAtomicValue()
creates a new atomic value and adds it to the dimension
Definition ResultComponent.cpp:311
CompositeDescription * createCompositeDescription()
Creates a new CompositeDescription and add it to DimensionDescription's list inside this ResultCompon...
Definition ResultComponent.cpp:152
DimensionDescription * getDimensionDescription()
Get the DimensionDescription object in this ResultComponent.
Definition ResultComponent.cpp:389
AtomicDescription * createAtomicDescription()
creates a new atomic description and adds it to the dimensiondescription
Definition ResultComponent.cpp:280
DimensionDescription mDimensionDescription
Definition ResultComponent.h:317
ResultComponent(unsigned int level, unsigned int version)
Creates a new ResultComponent using the given NUML level and version values.
Definition ResultComponent.cpp:47
Dimension mDimension
Definition ResultComponent.h:318
TupleDescription * createTupleDescription()
creates a new tupledescription and adds it to the dimensiondescription
Definition ResultComponent.cpp:218
Definition ResultComponent.h:323
virtual NUMLTypeCode_t getTypeCode() const
Returns the libNUML type code for this NUML object.
Definition ResultComponent.h:353
stores the tuple description
Definition TupleDescription.h:45
stores tuple information
Definition Tuple.h:45
#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 ResultComponent ResultComponent_t
stores the result component
Definition numlfwd.h:148
CLASS_OR_STRUCT DimensionDescription DimensionDescription_t
This class stores the dimension description.
Definition numlfwd.h:154
CLASS_OR_STRUCT CompositeDescription CompositeDescription_t
this class stores the component descriptions
Definition numlfwd.h:160