1 // FILTER FILTER : implemetation of FILTER idl descriptions
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : Filter_Gen_i.cxx
25 // Author : Paul RASCLE, EDF
29 #include "Filter_Gen_i.hxx"
31 #include "Utils_SINGLETON.hxx"
33 #include "Utils_CorbaException.hxx"
34 #include "utilities.h"
40 #include <TCollection_AsciiString.hxx>
41 #include <TColStd_SequenceOfAsciiString.hxx>
42 #include <HDFascii.hxx>
43 #include "SALOMEDS_Tool.hxx"
46 Filter_Gen_i* Filter_Gen_i::_FILTERGen = NULL;
48 //=============================================================================
50 * default constructor: not for use
52 //=============================================================================
54 Filter_Gen_i::Filter_Gen_i()
56 MESSAGE("Filter_Gen_i::Filter_Gen_i");
59 //=============================================================================
61 * standard constructor
63 //=============================================================================
65 Filter_Gen_i:: Filter_Gen_i(CORBA::ORB_ptr orb,
66 PortableServer::POA_ptr poa,
67 PortableServer::ObjectId * contId,
68 const char *instanceName,
69 const char *interfaceName) :
70 Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
72 MESSAGE("activate object");
74 _id = _poa->activate_object(_thisObj);
77 // get an NamingService interface
78 _NS = SINGLETON_<SALOME_NamingService>::Instance() ;
79 ASSERT(SINGLETON_<SALOME_NamingService>::IsAlreadyExisting()) ;
80 _NS->init_orb( _orb ) ;
86 //=============================================================================
88 * default destructor: not for use
90 //=============================================================================
92 Filter_Gen_i::~Filter_Gen_i()
94 MESSAGE("Filter_Gen_i::~Filter_Gen_i");