1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 #include "LightApp_DataOwner.h"
21 #include "LightApp_DataObject.h"
25 #define _typeinfo std::type_info
28 #define _typeinfo type_info
33 /*!Constructor. Initialize by \a theEntry.*/
35 ::LightApp_DataOwner( const QString& theEntry ):
40 #ifndef DISABLE_SALOMEOBJECT
41 /*!Constructor. Initialize by \a SALOME_InteractiveObject.*/
43 ::LightApp_DataOwner( const Handle(SALOME_InteractiveObject)& theIO ):
44 myEntry(!theIO.IsNull()? theIO->getEntry(): ""),
50 /*!Destructor. Do nothing.*/
52 ::~LightApp_DataOwner()
56 /*!Checks: Is current data owner equal \a obj.*/
59 ::isEqual( const SUIT_DataOwner& obj ) const
61 const LightApp_DataOwner* other = dynamic_cast<const LightApp_DataOwner*>( &obj );
63 return other && entry() == other->entry();
66 bool LightApp_DataOwner::operator<( const SUIT_DataOwner& obj ) const
68 const LightApp_DataOwner* other = dynamic_cast<const LightApp_DataOwner*>( &obj );
69 return entry() < other->entry();
80 #ifndef DISABLE_SALOMEOBJECT
81 /*!Gets SALOME_InteractiveObject.*/
82 const Handle(SALOME_InteractiveObject)&