#include "CAM_RootObject.h"
#include "CAM_DataModel.h"
+#include "CAM_Module.h"
/*!Constructor. Initialize by \a parent.
* Set data model to 0.
{
}
+/*!
+ Returns module name
+*/
+QString CAM_RootObject::name() const
+{
+ QString aName = "";
+ if (myDataModel)
+ aName = myDataModel->module()->moduleName();
+ return aName;
+}
+
/*!Get data model
*\retval const CAM_DataModel pointer to data model.
*/
CAM_RootObject( CAM_DataModel*, SUIT_DataObject* = 0 );
virtual ~CAM_RootObject();
+ virtual QString name() const;
+
virtual CAM_DataModel* dataModel() const;
virtual void setDataModel( CAM_DataModel* );