Salome HOME
Added new About dialog box
[modules/gui.git] / src / SalomeApp / SalomeApp_DataOwner.cxx
1 #include "SalomeApp_DataOwner.h"
2
3 #include "SalomeApp_DataObject.h"
4
5 #ifdef WNT
6 #include <typeinfo.h>
7 #endif
8
9 #include <iostream.h>
10
11 SalomeApp_DataOwner
12 ::SalomeApp_DataOwner( const QString& theEntry ): 
13   myEntry( theEntry )
14 {
15 }
16
17 SalomeApp_DataOwner
18 ::SalomeApp_DataOwner( const Handle(SALOME_InteractiveObject)& theIO ):
19   myEntry(!theIO.IsNull()? theIO->getEntry(): ""),
20   myIO(theIO)
21 {
22 }
23
24 SalomeApp_DataOwner
25 ::~SalomeApp_DataOwner()
26 {
27 }
28
29 bool
30 SalomeApp_DataOwner
31 ::isEqual( const SUIT_DataOwner& obj ) const
32 {
33   const SalomeApp_DataOwner* other = dynamic_cast<const SalomeApp_DataOwner*>( &obj );
34
35   return other && entry() == other->entry();
36 }
37
38 QString
39 SalomeApp_DataOwner
40 ::entry() const
41 {
42   return myEntry;
43 }
44
45 const Handle(SALOME_InteractiveObject)&
46 SalomeApp_DataOwner
47 ::IO() const
48 {
49   return myIO;
50 }