Salome HOME
34be897408e635fb890a3a347c6ed0180765bb40
[modules/filter.git] / src / FILTER / Filter_Gen_i.cxx
1 //  FILTER FILTER : implemetation of FILTER idl descriptions
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 //  File   : Filter_Gen_i.cxx
25 //  Author : Paul RASCLE, EDF
26 //  Module : FILTER
27 //  $Header$
28
29 #include "Filter_Gen_i.hxx"
30
31 #include "Utils_SINGLETON.hxx"
32 #include "OpUtil.hxx"
33 #include "Utils_CorbaException.hxx"
34 #include "utilities.h"
35
36 #include <string>
37 #include <deque>
38 #include <map>
39
40 #include <TCollection_AsciiString.hxx>
41 #include <TColStd_SequenceOfAsciiString.hxx>
42 #include <HDFascii.hxx>
43 #include "SALOMEDS_Tool.hxx"
44
45 using namespace std;
46  Filter_Gen_i* Filter_Gen_i::_FILTERGen = NULL;
47
48 //=============================================================================
49 /*!
50  *  default constructor: not for use
51  */
52 //=============================================================================
53
54 Filter_Gen_i::Filter_Gen_i()
55 {
56   MESSAGE("Filter_Gen_i::Filter_Gen_i");
57 }
58
59 //=============================================================================
60 /*!
61  *  standard constructor
62  */
63 //=============================================================================
64
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)
71 {
72   MESSAGE("activate object");
73   _thisObj = this ;
74   _id = _poa->activate_object(_thisObj);
75
76   _duringLoad=false;
77   // get an NamingService interface
78   _NS = SINGLETON_<SALOME_NamingService>::Instance() ;
79   ASSERT(SINGLETON_<SALOME_NamingService>::IsAlreadyExisting()) ;
80   _NS->init_orb( _orb ) ;
81
82   //_myFilterI = 0;
83   _FILTERGen = this;
84 }
85
86 //=============================================================================
87 /*!
88  *  default destructor: not for use
89  */
90 //=============================================================================
91
92 Filter_Gen_i::~Filter_Gen_i()
93 {
94   MESSAGE("Filter_Gen_i::~Filter_Gen_i");
95 }
96