Back to index

salome-kernel  6.5.0
SALOMEDS_SObject_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SALOMEDS_SObject_i.hxx
00024 //  Author : Sergey RUIN
00025 //  Module : SALOME
00026 //
00027 #ifndef __SALOMEDS_SOBJECT_I_H__
00028 #define __SALOMEDS_SOBJECT_I_H__
00029 
00030 // std C++ headers
00031 #include <iostream>
00032 
00033 // IDL headers
00034 #include <SALOMEconfig.h>
00035 #include CORBA_SERVER_HEADER(SALOMEDS)
00036 #include <SALOME_GenericObj_i.hh>
00037 
00038 // Cascade headers
00039 #include "SALOMEDSImpl_SObject.hxx"
00040 
00041 class Standard_EXPORT SALOMEDS_SObject_i: public virtual POA_SALOMEDS::SObject,
00042                           public virtual PortableServer::ServantBase,
00043                           public virtual SALOME::GenericObj_i
00044 {
00045 protected:
00046   CORBA::ORB_var               _orb;
00047   SALOMEDSImpl_SObject*        _impl;
00048 
00049 public:
00050 
00051   static SALOMEDS::SObject_ptr New(const SALOMEDSImpl_SObject&, CORBA::ORB_ptr); 
00052   
00053   SALOMEDS_SObject_i(const SALOMEDSImpl_SObject&, CORBA::ORB_ptr);
00054   
00055   virtual ~SALOMEDS_SObject_i();
00056   
00057   virtual CORBA::Boolean IsNull();
00058   virtual char* GetID();
00059   virtual SALOMEDS::SComponent_ptr GetFatherComponent();
00060   virtual SALOMEDS::SObject_ptr    GetFather() ;
00061   virtual CORBA::Boolean FindAttribute(SALOMEDS::GenericAttribute_out anAttribute, const char* aTypeOfAttribute);
00062   virtual CORBA::Boolean ReferencedObject(SALOMEDS::SObject_out obj) ;
00063   virtual CORBA::Boolean FindSubObject(CORBA::Long atag, SALOMEDS::SObject_out obj );
00064 
00065   virtual SALOMEDS::Study_ptr    GetStudy() ;
00066   virtual char* Name();
00067   virtual void  Name(const char*);
00068   virtual SALOMEDS::ListOfAttributes* GetAllAttributes();
00069 
00070   virtual CORBA::Object_ptr GetObject();
00071 
00072   virtual char* GetName();
00073   virtual char* GetComment();
00074   virtual char* GetIOR();
00075   virtual void SetAttrString(const char*, const char*);
00076 
00077   virtual CORBA::Short Tag();
00078   virtual CORBA::Short Depth();
00079 
00080   virtual CORBA::LongLong GetLocalImpl(const char* theHostname, CORBA::Long thePID, CORBA::Boolean& isLocal);
00081 };
00082 
00083 #endif