X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDS%2FSALOMEDS_StudyBuilder.hxx;h=352171d9d02dc949b419078773f58d6553da04f5;hb=f7b86e07ba309152a38fcb0652d86dddee892912;hp=f13561376522c036b6a2b89ec01de30c1f4fbd36;hpb=1bd1d38e86c39b13e265f8ff534fc1463c25fef3;p=modules%2Fyacs.git diff --git a/src/SALOMEDS/SALOMEDS_StudyBuilder.hxx b/src/SALOMEDS/SALOMEDS_StudyBuilder.hxx index f13561376..352171d9d 100644 --- a/src/SALOMEDS/SALOMEDS_StudyBuilder.hxx +++ b/src/SALOMEDS/SALOMEDS_StudyBuilder.hxx @@ -1,10 +1,34 @@ +// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + // File : SALOMEDS_StudyBuilder.hxx // Author : Sergey RUIN // Module : SALOME - +// #ifndef __SALOMEDS_STUDYBUILDER_H__ #define __SALOMEDS_STUDYBUILDER_H__ +#include "SALOMEDS_Defines.hxx" + #include "SALOMEDSClient.hxx" #include "SALOMEDSImpl_StudyBuilder.hxx" @@ -12,18 +36,17 @@ #include #include CORBA_SERVER_HEADER(SALOMEDS) - -class SALOMEDS_StudyBuilder: public SALOMEDSClient_StudyBuilder +class SALOMEDS_EXPORT SALOMEDS_StudyBuilder: public SALOMEDSClient_StudyBuilder { private: bool _isLocal; - Handle(SALOMEDSImpl_StudyBuilder) _local_impl; + SALOMEDSImpl_StudyBuilder* _local_impl; SALOMEDS::StudyBuilder_var _corba_impl; CORBA::ORB_var _orb; public: - SALOMEDS_StudyBuilder(const Handle(SALOMEDSImpl_StudyBuilder)& theBuilder); + SALOMEDS_StudyBuilder(SALOMEDSImpl_StudyBuilder* theBuilder); SALOMEDS_StudyBuilder(SALOMEDS::StudyBuilder_ptr theBuilder); ~SALOMEDS_StudyBuilder(); @@ -38,10 +61,10 @@ public: virtual void RemoveObject(const _PTR(SObject)& theSO); virtual void RemoveObjectWithChildren(const _PTR(SObject)& theSO); virtual _PTR(GenericAttribute) FindOrCreateAttribute(const _PTR(SObject)& theSO, - const std::string& aTypeOfAttribute); + const std::string& aTypeOfAttribute); virtual bool FindAttribute(const _PTR(SObject)& theSO, _PTR(GenericAttribute)& theAttribute, - const std::string& aTypeOfAttribute); + const std::string& aTypeOfAttribute); virtual void RemoveAttribute(const _PTR(SObject)& theSO, const std::string& aTypeOfAttribute); virtual void Addreference(const _PTR(SObject)& me, const _PTR(SObject)& thereferencedObject); virtual void RemoveReference(const _PTR(SObject)& me); @@ -61,6 +84,8 @@ public: virtual void SetComment(const _PTR(SObject)& theSO, const std::string& theValue); virtual void SetIOR(const _PTR(SObject)& theSO, const std::string& theValue); + SALOMEDS::StudyBuilder_ptr GetBuilder(); + private: void CheckLocked(); void init_orb();