1 // Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
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, or (at your option) any later version.
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/ or email : webmaster.salome@opencascade.com
20 // Author: Guillaume Boulant (EDF/R&D)
22 #include <utilities.h>
23 #include "SALOMEDS_DriverDefaultImpl.hxx"
26 //===========================================================================
27 SALOMEDS_DriverDefaultImpl::SALOMEDS_DriverDefaultImpl(CORBA::ORB_ptr orb,
28 PortableServer::POA_ptr poa,
29 PortableServer::ObjectId * contId,
30 const char *instanceName,
31 const char *interfaceName)
32 // :Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
34 MESSAGE("SALOMEDS_DriverDefaultImpl::SALOMEDS_DriverDefaultImpl : ");
37 //===========================================================================
38 SALOMEDS_DriverDefaultImpl::~SALOMEDS_DriverDefaultImpl()
40 MESSAGE("SALOMEDS_DriverDefaultImpl::~SALOMEDS_DriverDefaultImpl");
43 //===========================================================================
44 CORBA::Boolean SALOMEDS_DriverDefaultImpl::Load(SALOMEDS::SComponent_ptr theComponent,
45 const SALOMEDS::TMPFile & theStream,
49 MESSAGE("--------------------------------------");
50 MESSAGE("--------------------------------------");
51 MESSAGE("--------------------------------------");
52 MESSAGE("SALOMEDS_DriverDefaultImpl::Load");
53 MESSAGE("Should be implemented");
54 MESSAGE("--------------------------------------");
55 MESSAGE("--------------------------------------");
56 MESSAGE("--------------------------------------");
60 //===========================================================================
61 CORBA::Boolean SALOMEDS_DriverDefaultImpl::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
62 const SALOMEDS::TMPFile & theStream,
66 MESSAGE("--------------------------------------");
67 MESSAGE("--------------------------------------");
68 MESSAGE("--------------------------------------");
69 MESSAGE("SALOMEDS_DriverDefaultImpl::LoadASCII");
70 MESSAGE("Should be implemented");
71 MESSAGE("--------------------------------------");
72 MESSAGE("--------------------------------------");
73 MESSAGE("--------------------------------------");
77 //===========================================================================
78 char* SALOMEDS_DriverDefaultImpl::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
79 const char* aLocalPersistentID,
80 CORBA::Boolean isMultiFile,
81 CORBA::Boolean isASCII)
83 MESSAGE("--------------------------------------");
84 MESSAGE("--------------------------------------");
85 MESSAGE("--------------------------------------");
86 MESSAGE("SALOMEDS_DriverDefaultImpl::LocalPersistentIDToIOR");
87 MESSAGE("Should be implemented");
88 MESSAGE("--------------------------------------");
89 MESSAGE("--------------------------------------");
90 MESSAGE("--------------------------------------");
91 CORBA::String_var aString("");
92 return aString._retn();
95 //===========================================================================
96 SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::Save(SALOMEDS::SComponent_ptr theComponent,
100 MESSAGE("--------------------------------------");
101 MESSAGE("--------------------------------------");
102 MESSAGE("--------------------------------------");
103 MESSAGE("SALOMEDS_DriverDefaultImpl::Save");
104 MESSAGE("Should be implemented");
105 MESSAGE("--------------------------------------");
106 MESSAGE("--------------------------------------");
107 MESSAGE("--------------------------------------");
108 SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
109 return aStreamFile._retn();
112 //===========================================================================
113 SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
117 MESSAGE("--------------------------------------");
118 MESSAGE("--------------------------------------");
119 MESSAGE("--------------------------------------");
120 MESSAGE("SALOMEDS_DriverDefaultImpl::SaveASCII");
121 MESSAGE("Should be implemented");
122 MESSAGE("--------------------------------------");
123 MESSAGE("--------------------------------------");
124 MESSAGE("--------------------------------------");
125 SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
126 return aStreamFile._retn();
129 //===========================================================================
130 char* SALOMEDS_DriverDefaultImpl::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
131 const char* IORString,
132 CORBA::Boolean isMultiFile,
133 CORBA::Boolean isASCII)
135 MESSAGE("-----------------------------------------");
136 MESSAGE("-----------------------------------------");
137 MESSAGE("-----------------------------------------");
138 MESSAGE("SALOMEDS_DriverDefaultImpl::IORToLocalPersistentID");
139 MESSAGE("Should be implemented");
140 MESSAGE("-----------------------------------------");
141 MESSAGE("-----------------------------------------");
142 MESSAGE("-----------------------------------------");
143 CORBA::String_var aString("");
144 return aString._retn();
148 //===========================================================================
149 void SALOMEDS_DriverDefaultImpl::Close(SALOMEDS::SComponent_ptr theComponent)
151 MESSAGE("------------------------");
152 MESSAGE("SALOMEDS_DriverDefaultImpl::Close");
153 MESSAGE("------------------------");
156 //===========================================================================
157 char* SALOMEDS_DriverDefaultImpl::ComponentDataType()
159 MESSAGE("-----------------------------------------");
160 MESSAGE("-----------------------------------------");
161 MESSAGE("-----------------------------------------");
162 MESSAGE("SALOMEDS_DriverDefaultImpl::ComponentDataType");
163 MESSAGE("Should be implemented");
164 MESSAGE("-----------------------------------------");
165 MESSAGE("-----------------------------------------");
166 MESSAGE("-----------------------------------------");
167 return CORBA::string_dup("J aurais du nommer mon type prefere");
170 //===========================================================================
171 bool SALOMEDS_DriverDefaultImpl::CanPublishInStudy(CORBA::Object_ptr theIOR)
173 MESSAGE("-----------------------------------------");
174 MESSAGE("-----------------------------------------");
175 MESSAGE("-----------------------------------------");
176 MESSAGE("SALOMEDS_DriverDefaultImpl::CanPublishInStudy");
177 MESSAGE("Should be implemented");
178 MESSAGE("-----------------------------------------");
179 MESSAGE("-----------------------------------------");
180 MESSAGE("-----------------------------------------");
184 //===========================================================================
185 SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PublishInStudy(SALOMEDS::SObject_ptr theSObject,
186 CORBA::Object_ptr theObject,
188 throw (SALOME::SALOME_Exception)
190 MESSAGE("-----------------------------------------");
191 MESSAGE("-----------------------------------------");
192 MESSAGE("-----------------------------------------");
193 MESSAGE("SALOMEDS_DriverDefaultImpl::PublishInStudy");
194 MESSAGE("Should be implemented");
195 MESSAGE("-----------------------------------------");
196 MESSAGE("-----------------------------------------");
197 MESSAGE("-----------------------------------------");
198 SALOMEDS::SObject_var aResultSO;
199 return aResultSO._retn();
202 //===========================================================================
203 CORBA::Boolean SALOMEDS_DriverDefaultImpl::CanCopy(SALOMEDS::SObject_ptr theObject)
205 MESSAGE("-----------------------------------------");
206 MESSAGE("-----------------------------------------");
207 MESSAGE("-----------------------------------------");
208 MESSAGE("SALOMEDS_DriverDefaultImpl::CanCopy");
209 MESSAGE("Should be implemented");
210 MESSAGE("-----------------------------------------");
211 MESSAGE("-----------------------------------------");
212 MESSAGE("-----------------------------------------");
217 //===========================================================================
218 SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::CopyFrom(SALOMEDS::SObject_ptr theObject,
219 CORBA::Long& theObjectID)
221 MESSAGE("--------------------------------------");
222 MESSAGE("--------------------------------------");
223 MESSAGE("--------------------------------------");
224 MESSAGE("SALOMEDS_DriverDefaultImpl::CopyFrom");
225 MESSAGE("Should be implemented");
226 MESSAGE("--------------------------------------");
227 MESSAGE("--------------------------------------");
228 MESSAGE("--------------------------------------");
229 SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
230 return aStreamFile._retn();
233 //===========================================================================
234 SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PasteInto( const SALOMEDS::TMPFile & theStream,
235 CORBA::Long theObjectID,
236 SALOMEDS::SObject_ptr theSObject)
238 MESSAGE("-----------------------------------------");
239 MESSAGE("-----------------------------------------");
240 MESSAGE("-----------------------------------------");
241 MESSAGE("SALOMEDS_DriverDefaultImpl::PasteInto");
242 MESSAGE("Should be implemented");
243 MESSAGE("-----------------------------------------");
244 MESSAGE("-----------------------------------------");
245 MESSAGE("-----------------------------------------");
246 SALOMEDS::SObject_var aResultSO;
247 return aResultSO._retn();
250 //===========================================================================
251 CORBA::Boolean SALOMEDS_DriverDefaultImpl::CanPaste ( const char *theComponentName,
252 CORBA::Long theObjectID)
254 MESSAGE("-----------------------------------------");
255 MESSAGE("-----------------------------------------");
256 MESSAGE("-----------------------------------------");
257 MESSAGE("SALOMEDS_DriverDefaultImpl::CanPaste");
258 MESSAGE("Should be implemented");
259 MESSAGE("-----------------------------------------");
260 MESSAGE("-----------------------------------------");
261 MESSAGE("-----------------------------------------");