gcp::MesomeryArrow Class Reference

Inheritance diagram for gcp::MesomeryArrow:

gcp::Arrow gcu::Object

List of all members.

Public Member Functions

virtual xmlNodePtr Save (xmlDocPtr xml)
virtual bool Load (xmlNodePtr)
virtual void Add (GtkWidget *w)
virtual void Update (GtkWidget *w)
void SetStartMesomer (Mesomer *Mesomer)
MesomerGetStartMesomer ()
void SetEndMesomer (Mesomer *Mesomer)
MesomerGetEndMesomer ()


Detailed Description

Definition at line 35 of file mesomery-arrow.h.


Member Function Documentation

virtual xmlNodePtr gcp::MesomeryArrow::Save ( xmlDocPtr  xml  )  [virtual]

Parameters:
xml,: the xmlDoc used to save the document.
Used to save the Object to the xmlDoc. Each serializable Object should implement this virtual method.
Returns:
the xmlNode containing the serialized object. The name of the node should be the name of the corresponding type used as first parameter to the Object::AddType method. The default method just saves the id and children.

Reimplemented from gcu::Object.

virtual bool gcp::MesomeryArrow::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 gcp::Arrow.

virtual void gcp::MesomeryArrow::Add ( GtkWidget *  w  )  [virtual]

Parameters:
w,: the GtkWidget inside which the Object will be displayed.
Used to add a representation of the Object in the widget. This method might be overrided for displayable Object classes unless the application uses another mechanism.

Reimplemented from gcu::Object.

virtual void gcp::MesomeryArrow::Update ( GtkWidget *  w  )  [virtual]

Parameters:
w,: the GtkWidget inside which the Object is displayed.
Used to update the representation of the Object in the widget. This method might be overrided for displayable Object classes unless the application uses another mechanism.

Reimplemented from gcu::Object.


The documentation for this class was generated from the following file:
Generated on Sun Sep 16 14:21:56 2007 for The Gnome Chemistry Utils by  doxygen 1.5.3