gcp::ReactionProp Class Reference

#include <gcp/reaction-prop.h>

Inheritance diagram for gcp::ReactionProp:

gcu::Object gcu::DialogOwner

List of all members.

Public Member Functions

bool Load (xmlNodePtr)
bool OnSignal (gcu::SignalId Signal, gcu::Object *Child)


Detailed Description

This is a container class for objects attached to a reaction arrow.

Definition at line 57 of file reaction-prop.h.


Member Function Documentation

bool gcp::ReactionProp::Load ( xmlNodePtr  node  )  [virtual]

Parameters:
node a pointer to the xmlNode containing the serialized object.
Used to load an Object in memory. The Object must already exist.

Example:

        std::string str = (const char*)node->name;
        Object* pObject = Object::CreateObject(str, this);
        if (pObject) {
                if (!pObject->Load(node)) delete Object; 
        } else
                cerr << "Warning: unknown object: " << str << endl;

Returns:
true on succes, false otherwise.

Reimplemented from gcu::Object.

bool gcp::ReactionProp::OnSignal ( gcu::SignalId  Signal,
gcu::Object Child 
) [virtual]

Parameters:
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 object. It should not be called by a program; call Object::EmitSignal instead.

Returns:
true if the signal should be propagated to the parent, false otherwise.

Reimplemented from gcu::Object.


The documentation for this class was generated from the following file:

Generated on Sat Aug 23 23:10:07 2008 for The Gnome Chemistry Utils by  doxygen 1.5.6