1 // Copyright (C) 2007-2016 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
19 // Author: Guillaume Boulant (EDF/R&D)
21 #include <utilities.h>
22 #include "SALOMEDS_DriverDefaultImpl.hxx"
25 //===========================================================================
26 SALOMEDS_DriverDefaultImpl::SALOMEDS_DriverDefaultImpl(CORBA::ORB_ptr orb,
27 PortableServer::POA_ptr poa,
28 PortableServer::ObjectId * contId,
29 const char *instanceName,
30 const char *interfaceName)
31 // :Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
33 MESSAGE("SALOMEDS_DriverDefaultImpl::SALOMEDS_DriverDefaultImpl : ");
36 //===========================================================================
37 SALOMEDS_DriverDefaultImpl::~SALOMEDS_DriverDefaultImpl()
39 MESSAGE("SALOMEDS_DriverDefaultImpl::~SALOMEDS_DriverDefaultImpl");
42 //===========================================================================
43 CORBA::Boolean SALOMEDS_DriverDefaultImpl::Load(SALOMEDS::SComponent_ptr theComponent,
44 const SALOMEDS::TMPFile & theStream,
48 MESSAGE("--------------------------------------");
49 MESSAGE("--------------------------------------");
50 MESSAGE("--------------------------------------");
51 MESSAGE("SALOMEDS_DriverDefaultImpl::Load");
52 MESSAGE("Should be implemented");
53 MESSAGE("--------------------------------------");
54 MESSAGE("--------------------------------------");
55 MESSAGE("--------------------------------------");
59 //===========================================================================
60 CORBA::Boolean SALOMEDS_DriverDefaultImpl::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
61 const SALOMEDS::TMPFile & theStream,
65 MESSAGE("--------------------------------------");
66 MESSAGE("--------------------------------------");
67 MESSAGE("--------------------------------------");
68 MESSAGE("SALOMEDS_DriverDefaultImpl::LoadASCII");
69 MESSAGE("Should be implemented");
70 MESSAGE("--------------------------------------");
71 MESSAGE("--------------------------------------");
72 MESSAGE("--------------------------------------");
76 //===========================================================================
77 char* SALOMEDS_DriverDefaultImpl::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
78 const char* aLocalPersistentID,
79 CORBA::Boolean isMultiFile,
80 CORBA::Boolean isASCII)
82 MESSAGE("--------------------------------------");
83 MESSAGE("--------------------------------------");
84 MESSAGE("--------------------------------------");
85 MESSAGE("SALOMEDS_DriverDefaultImpl::LocalPersistentIDToIOR");
86 MESSAGE("Should be implemented");
87 MESSAGE("--------------------------------------");
88 MESSAGE("--------------------------------------");
89 MESSAGE("--------------------------------------");
90 CORBA::String_var aString("");
91 return aString._retn();
94 //===========================================================================
95 SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::Save(SALOMEDS::SComponent_ptr theComponent,
99 MESSAGE("--------------------------------------");
100 MESSAGE("--------------------------------------");
101 MESSAGE("--------------------------------------");
102 MESSAGE("SALOMEDS_DriverDefaultImpl::Save");
103 MESSAGE("Should be implemented");
104 MESSAGE("--------------------------------------");
105 MESSAGE("--------------------------------------");
106 MESSAGE("--------------------------------------");
107 SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
108 return aStreamFile._retn();
111 //===========================================================================
112 SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
116 MESSAGE("--------------------------------------");
117 MESSAGE("--------------------------------------");
118 MESSAGE("--------------------------------------");
119 MESSAGE("SALOMEDS_DriverDefaultImpl::SaveASCII");
120 MESSAGE("Should be implemented");
121 MESSAGE("--------------------------------------");
122 MESSAGE("--------------------------------------");
123 MESSAGE("--------------------------------------");
124 SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
125 return aStreamFile._retn();
128 //===========================================================================
129 char* SALOMEDS_DriverDefaultImpl::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
130 const char* IORString,
131 CORBA::Boolean isMultiFile,
132 CORBA::Boolean isASCII)
134 MESSAGE("-----------------------------------------");
135 MESSAGE("-----------------------------------------");
136 MESSAGE("-----------------------------------------");
137 MESSAGE("SALOMEDS_DriverDefaultImpl::IORToLocalPersistentID");
138 MESSAGE("Should be implemented");
139 MESSAGE("-----------------------------------------");
140 MESSAGE("-----------------------------------------");
141 MESSAGE("-----------------------------------------");
142 CORBA::String_var aString("");
143 return aString._retn();
147 //===========================================================================
148 void SALOMEDS_DriverDefaultImpl::Close(SALOMEDS::SComponent_ptr theComponent)
150 MESSAGE("------------------------");
151 MESSAGE("SALOMEDS_DriverDefaultImpl::Close");
152 MESSAGE("------------------------");
155 //===========================================================================
156 char* SALOMEDS_DriverDefaultImpl::ComponentDataType()
158 MESSAGE("-----------------------------------------");
159 MESSAGE("-----------------------------------------");
160 MESSAGE("-----------------------------------------");
161 MESSAGE("SALOMEDS_DriverDefaultImpl::ComponentDataType");
162 MESSAGE("Should be implemented");
163 MESSAGE("-----------------------------------------");
164 MESSAGE("-----------------------------------------");
165 MESSAGE("-----------------------------------------");
166 return CORBA::string_dup("J aurais du nommer mon type prefere");
169 //===========================================================================
170 bool SALOMEDS_DriverDefaultImpl::CanPublishInStudy(CORBA::Object_ptr theIOR)
172 MESSAGE("-----------------------------------------");
173 MESSAGE("-----------------------------------------");
174 MESSAGE("-----------------------------------------");
175 MESSAGE("SALOMEDS_DriverDefaultImpl::CanPublishInStudy");
176 MESSAGE("Should be implemented");
177 MESSAGE("-----------------------------------------");
178 MESSAGE("-----------------------------------------");
179 MESSAGE("-----------------------------------------");
183 //===========================================================================
184 SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PublishInStudy(SALOMEDS::SObject_ptr theSObject,
185 CORBA::Object_ptr theObject,
187 throw (SALOME::SALOME_Exception)
189 MESSAGE("-----------------------------------------");
190 MESSAGE("-----------------------------------------");
191 MESSAGE("-----------------------------------------");
192 MESSAGE("SALOMEDS_DriverDefaultImpl::PublishInStudy");
193 MESSAGE("Should be implemented");
194 MESSAGE("-----------------------------------------");
195 MESSAGE("-----------------------------------------");
196 MESSAGE("-----------------------------------------");
197 SALOMEDS::SObject_var aResultSO;
198 return aResultSO._retn();
201 //===========================================================================
202 CORBA::Boolean SALOMEDS_DriverDefaultImpl::CanCopy(SALOMEDS::SObject_ptr theObject)
204 MESSAGE("-----------------------------------------");
205 MESSAGE("-----------------------------------------");
206 MESSAGE("-----------------------------------------");
207 MESSAGE("SALOMEDS_DriverDefaultImpl::CanCopy");
208 MESSAGE("Should be implemented");
209 MESSAGE("-----------------------------------------");
210 MESSAGE("-----------------------------------------");
211 MESSAGE("-----------------------------------------");
216 //===========================================================================
217 SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::CopyFrom(SALOMEDS::SObject_ptr theObject,
218 CORBA::Long& theObjectID)
220 MESSAGE("--------------------------------------");
221 MESSAGE("--------------------------------------");
222 MESSAGE("--------------------------------------");
223 MESSAGE("SALOMEDS_DriverDefaultImpl::CopyFrom");
224 MESSAGE("Should be implemented");
225 MESSAGE("--------------------------------------");
226 MESSAGE("--------------------------------------");
227 MESSAGE("--------------------------------------");
228 SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
229 return aStreamFile._retn();
232 //===========================================================================
233 SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PasteInto( const SALOMEDS::TMPFile & theStream,
234 CORBA::Long theObjectID,
235 SALOMEDS::SObject_ptr theSObject)
237 MESSAGE("-----------------------------------------");
238 MESSAGE("-----------------------------------------");
239 MESSAGE("-----------------------------------------");
240 MESSAGE("SALOMEDS_DriverDefaultImpl::PasteInto");
241 MESSAGE("Should be implemented");
242 MESSAGE("-----------------------------------------");
243 MESSAGE("-----------------------------------------");
244 MESSAGE("-----------------------------------------");
245 SALOMEDS::SObject_var aResultSO;
246 return aResultSO._retn();
249 //===========================================================================
250 CORBA::Boolean SALOMEDS_DriverDefaultImpl::CanPaste ( const char *theComponentName,
251 CORBA::Long theObjectID)
253 MESSAGE("-----------------------------------------");
254 MESSAGE("-----------------------------------------");
255 MESSAGE("-----------------------------------------");
256 MESSAGE("SALOMEDS_DriverDefaultImpl::CanPaste");
257 MESSAGE("Should be implemented");
258 MESSAGE("-----------------------------------------");
259 MESSAGE("-----------------------------------------");
260 MESSAGE("-----------------------------------------");