1 #ifndef SALOMEAPP_ROOTOBJECT_H
2 #define SALOMEAPP_ROOTOBJECT_H
5 #include "SUIT_DataObject.h"
10 SalomeApp_RootObject - class to be instanciated by only one object -
11 root object of SalomeApp data object tree. This object is not shown
12 in object browser (invisible), so it has no re-definition of name(), icon(),
13 etc. methods. The goal of this class is to provide a unified access
14 to SalomeApp_Study object from SalomeApp_DataObject instances.
16 class SALOMEAPP_EXPORT SalomeApp_RootObject : public SUIT_DataObject
19 SalomeApp_RootObject( SalomeApp_Study* study )
22 virtual ~SalomeApp_RootObject() {}
24 void setStudy( SalomeApp_Study* study ) { myStudy = study; }
25 SalomeApp_Study* study() const { return myStudy; }
28 SalomeApp_Study* myStudy;