Storage_StreamTypeMismatchError::Raise();
return *this;
-#else
- if (!(myStream >> aValue)) Storage_StreamTypeMismatchError::Raise();
-
- return *this;
-#endif
}
//=======================================================================
Storage_StreamTypeMismatchError::Raise();
return *this;
-#else
- if (!(myStream >> aValue)) Storage_StreamTypeMismatchError::Raise();
- return *this;
-#endif
}
//=======================================================================
//function : MetaData
//purpose :
//==============================================================================
-Handle(CDM_MetaData) FWOSDriver_FWOSDriver::MetaData(const Handle(Storage_IODevice)& aDevice,
+Handle(CDM_MetaData) FWOSDriver_Driver::MetaData(const Handle(Storage_IODevice)& aDevice,
const TCollection_ExtendedString& /*aVersion*/)
{
// TCollection_ExtendedString p = Concatenate(aFolder,aName);
//function : CreateMetaData
//purpose :
//==============================================================================
-Handle(CDM_MetaData) FWOSDriver_FWOSDriver::CreateMetaData(const Handle(CDM_Document)& aDocument)
+Handle(CDM_MetaData) FWOSDriver_Driver::CreateMetaData(const Handle(CDM_Document)& aDocument)
{
return CDM_MetaData::LookUp(aDocument->RequestedDevice(),!aDocument->RequestedDevice()->CanWrite());
}
//function : BuildFileName
//purpose :
//==============================================================================
-TCollection_ExtendedString FWOSDriver_FWOSDriver::BuildFileName(const Handle(CDM_Document)& aDocument)
+TCollection_ExtendedString FWOSDriver_Driver::BuildFileName(const Handle(CDM_Document)& aDocument)
{
/*
TCollection_ExtendedString retstr = TCollection_ExtendedString(aDocument->RequestedFolder());
//function : BuildMetaData
//purpose :
//==============================================================================
-Handle(CDM_MetaData) FWOSDriver_FWOSDriver::BuildMetaData(const Handle(Storage_IODevice)& aDevice)
+Handle(CDM_MetaData) FWOSDriver_Driver::BuildMetaData(const Handle(Storage_IODevice)& aDevice)
{
/*
OSD_Path p = UTL::Path(aFileName);
//function : SetName
//purpose :
//==============================================================================
-TCollection_ExtendedString FWOSDriver_FWOSDriver::SetName(const Handle(CDM_Document)& aDocument,
+TCollection_ExtendedString FWOSDriver_Driver::SetName(const Handle(CDM_Document)& aDocument,
const TCollection_ExtendedString& aName)
{
OSD_Path p = OSD_Path(ASCII(aFileName));
TCollection_AsciiString theExtension=p.Extension();
-/*
TCollection_AsciiString theGoodExtension=theExtension;;
if(TCollection_AsciiString(theExtension.Value(1))==".")
return UNICODE(theGoodExtension);
}
-*/
void UTL::AddToUserInfo(const Handle(Storage_Data)& aData, const TCollection_ExtendedString& anInfo) {
aData->AddToUserInfo(ASCII(anInfo));
}