mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026961: Recover possibility to read files in old persistence format -- preparation
Added basic support for possibility to read filed in old persistent format. Toolkits TKStd, TKStdL, TKShape added to provide necessary tools (to be done). Obsolete interfaces are removed from classes in PCDM and Storage.
This commit is contained in:
@@ -60,26 +60,6 @@ Standard_Boolean PCDM::FindStorageDriver(const Handle(CDM_Document)& aDocument)
|
||||
return aDocument->FindStoragePlugin();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Schema
|
||||
//purpose : returns a schema to be used during a Store or Retrieve
|
||||
// operation.
|
||||
// Schema will plug the schema defined by
|
||||
// the SchemaName method.
|
||||
//=======================================================================
|
||||
|
||||
Handle(Storage_Schema) PCDM::Schema(const TCollection_ExtendedString& aSchemaName, const Handle(CDM_Application)& anApplication) {
|
||||
|
||||
Handle(Resource_Manager) r = anApplication->Resources();
|
||||
if(!UTL::Find(r,aSchemaName)) {
|
||||
Standard_SStream aMsg; aMsg << "could not find the plugin resource for the schema: " << TCollection_ExtendedString(aSchemaName) << (char)0;
|
||||
Standard_NoSuchObject::Raise(aMsg);
|
||||
}
|
||||
Handle(Standard_Transient) t = Plugin::Load(UTL::GUID(UTL::Value(r,aSchemaName)));
|
||||
return Handle(Storage_Schema)::DownCast (t);
|
||||
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : FileDriverType
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user