3 class SALOME_DriverPy_i(SALOMEDS__POA.Driver):
5 Python implementation of generic SALOMEDS driver.
6 Should be inherited by any Python module's engine
7 to provide persistence mechanism.
9 def __init__ (self, componentDataType):
10 print "SALOME_DriverPy.__init__: ",componentDataType
11 self._ComponentDataType = componentDataType
13 def IORToLocalPersistentID(self, theSObject, IORString, isMultiFile, isASCII):
14 return theSObject.GetID()
16 def LocalPersistentIDToIOR(self, theSObject, PersistentID, isMultiFile, isASCII):
19 def ComponentDataType(self):
20 return self._ComponentDataType
22 def Save(self, theComponent, theURL, isMultiFile):
25 def SaveASCII(self, theComponent, theURL, isMultiFile):
26 return self.Save(theComponent, theURL, isMultiFile)
28 def Load(self, theComponent, theStream, theURL, isMultiFile):
31 def LoadASCII(self, theComponent, theStream, theURL, isMultiFile):
32 return self.Load(theComponent, theStream, theURL, isMultiFile)
34 def Close(self, theComponent):
37 def CanPublishInStudy(self, theIOR):
40 def PublishInStudy(self, theStudy, theSObject, theObject, theName):
43 def CanCopy(self, theObject):