2 // File : GEOM_InteractiveObject.cxx
3 // Created : Wed Feb 20 17:24:59 2002
4 // Author : Christophe ATTANASIO
7 // Copyright : Open CASCADE 2002
11 \class GEOM_InteractiveObject GEOM_InteractiveObject.hxx
15 #include "GEOM_InteractiveObject.ixx"
17 GEOM_InteractiveObject::GEOM_InteractiveObject()
18 : SALOME_InteractiveObject()
24 GEOM_InteractiveObject::GEOM_InteractiveObject(const Standard_CString anIOR,
25 const Standard_CString aFatherIOR,
26 const Standard_CString aComponentDataType,
27 const Standard_CString anEntry)
28 : SALOME_InteractiveObject(anEntry,aComponentDataType)
30 myIOR = new char [strlen(anIOR)+1];
31 strcpy( myIOR, anIOR);
32 myFatherIOR = new char [strlen(aFatherIOR)+1];
33 strcpy( myFatherIOR, aFatherIOR);
36 Standard_CString GEOM_InteractiveObject::getIOR(){
39 Standard_CString GEOM_InteractiveObject::getFatherIOR(){
43 Standard_Boolean GEOM_InteractiveObject::isSame(const Handle(SALOME_InteractiveObject)& anIO ){
44 if ( anIO->hasEntry() && this->hasEntry() ) {
45 if ( strcmp(myEntry, anIO->getEntry() ) == 0 )
49 if ( anIO->IsKind(STANDARD_TYPE(GEOM_InteractiveObject))) {
50 Handle(GEOM_InteractiveObject) theIO = Handle(GEOM_InteractiveObject)::DownCast( anIO );
51 if ( strcmp(myIOR, theIO->getIOR() ) == 0 )
55 return Standard_False;