#include <gcp/reaction-prop.h>
Public Member Functions | |
ReactionProp () | |
ReactionProp (ReactionArrow *parent, gcu::Object *child) | |
~ReactionProp () | |
xmlNodePtr | Save (xmlDocPtr xml) |
bool | Load (xmlNodePtr node) |
bool | OnSignal (gcu::SignalId Signal, gcu::Object *Child) |
std::string | Name () |
This is a container class for objects attached to a reaction arrow.
Definition at line 98 of file reaction-prop.h.
gcp::ReactionProp::ReactionProp | ( | ) |
The default constructor.
gcp::ReactionProp::ReactionProp | ( | ReactionArrow * | parent, | |
gcu::Object * | child | |||
) |
parent | the parent reaction arrow. | |
child | the molecule or text to attach to the arrow. |
Builds a new reactionproperty, and attach the child to the arrow.
gcp::ReactionProp::~ReactionProp | ( | ) |
The destructor.
bool gcp::ReactionProp::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized reaction property. |
Used to load a reaction property in memory.
Reimplemented from gcu::Object.
std::string gcp::ReactionProp::Name | ( | ) | [virtual] |
Reimplemented from gcu::Object.
bool gcp::ReactionProp::OnSignal | ( | gcu::SignalId | Signal, | |
gcu::Object * | Child | |||
) | [virtual] |
Signal | the appropriate SignalId | |
Child | the child which emitted the signal or NULL |
This function is called by the framework when a signal has been emitted for the reaction property, when one its emedded object changed. It should not be called by a program; call Object::EmitSignal instead.
Reimplemented from gcu::Object.
xmlNodePtr gcp::ReactionProp::Save | ( | xmlDocPtr | xml | ) |
xml | the xmlDoc used to save the document. |
Used to save the reaction property to the xmlDoc.