Back to index

salome-gui  6.5.0
Classes
SUIT_DataObject Class Reference

Data object representing the data instance in the tree-like hierarchy. More...

Inheritance diagram for SUIT_DataObject:
Inheritance graph
[legend]

Classes

class  Signal
 Watcher class, responsible for the emitting signals on behalf of the data objects. More...

Detailed Description

Data object representing the data instance in the tree-like hierarchy.

Data object represents uniform data tree structure recommended to use in the SUIT-based applications.


Class Documentation

class SUIT_DataObject::Signal

Watcher class, responsible for the emitting signals on behalf of the data objects.

SUIT_DataObject class does not inherit from QObject for the performance reasons, so it can not use signals/slots mechanism directly. Instead it uses the only Signal object to emit the signals when the data object is created, destroyed, inserted to the parent object or removed from it.

If some object needs to handle, for example, data object destroying, it can use SUIT_DataObject::signal() method to connect the signal:

  MyHandler* h = new MyHandler();
  h->connect( SUIT_DataObject::signal(), SIGNAL(destroyed(SUIT_DataObject*)),
              h, SLOT(onDestroyed(SUIT_DataObject*)) );

The same can be done by using static method SUIT_DataObject::connect(). For example,

  MyHandler* h = new MyHandler();
  SUIT_DataObject::connect( SIGNAL(destroyed(SUIT_DataObject*)),
                            h, SLOT(onDestroyed(SUIT_DataObject*)));

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