mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0022573: Extend the range of status values returned by the method TDocStd_Application::SaveAs
This commit is contained in:
@@ -29,9 +29,25 @@ is
|
||||
RS_UnrecognizedFileFormat,
|
||||
RS_MakeFailure,
|
||||
RS_PermissionDenied,
|
||||
RS_DriverFailure
|
||||
RS_DriverFailure,
|
||||
RS_AlreadyRetrievedAndModified,
|
||||
RS_AlreadyRetrieved,
|
||||
RS_UnknownDocument,
|
||||
RS_WrongResource,
|
||||
RS_NoModel
|
||||
end ReaderStatus;
|
||||
|
||||
|
||||
enumeration StoreStatus is
|
||||
SS_OK,
|
||||
SS_DriverFailure,
|
||||
SS_WriteFailure,
|
||||
SS_Failure,
|
||||
SS_DiskWritingFailure,
|
||||
SS_UserRightsFailure,
|
||||
SS_Doc_IsNull,
|
||||
SS_No_Obj,
|
||||
SS_Info_Section_Error
|
||||
end StoreStatus;
|
||||
|
||||
deferred class Document;
|
||||
class SequenceOfDocument instantiates Sequence from TCollection(Document from PCDM);
|
||||
@@ -84,4 +100,3 @@ is
|
||||
returns TypeOfFileDriver from PCDM
|
||||
is private;
|
||||
end PCDM;
|
||||
|
||||
|
@@ -23,7 +23,15 @@ deferred class StorageDriver from PCDM inherits Writer from PCDM
|
||||
--
|
||||
---Category: persistent implemention of storage.
|
||||
|
||||
uses Document from CDM, Document from PCDM, Data from Storage, ExtendedString from TCollection, Schema from Storage,SequenceOfExtendedString from TColStd, SequenceOfDocument from PCDM
|
||||
uses
|
||||
Document from CDM,
|
||||
Document from PCDM,
|
||||
Data from Storage,
|
||||
ExtendedString from TCollection,
|
||||
Schema from Storage,
|
||||
SequenceOfExtendedString from TColStd,
|
||||
SequenceOfDocument from PCDM,
|
||||
StoreStatus from PCDM
|
||||
|
||||
raises NoSuchObject from Standard,DriverError from PCDM
|
||||
is
|
||||
@@ -62,9 +70,17 @@ is
|
||||
|
||||
GetFormat (me)
|
||||
returns ExtendedString from TCollection;
|
||||
|
||||
|
||||
IsError (me) returns Boolean from Standard;
|
||||
SetIsError(me : mutable; theIsError : Boolean);
|
||||
|
||||
GetStoreStatus (me) returns StoreStatus from PCDM;
|
||||
SetStoreStatus(me : mutable; theStoreStatus : StoreStatus from PCDM);
|
||||
|
||||
fields
|
||||
|
||||
myFormat : ExtendedString from TCollection;
|
||||
myIsError: Boolean from Standard;
|
||||
myStoreStatus: StoreStatus from PCDM;
|
||||
|
||||
end StorageDriver from PCDM;
|
||||
|
@@ -133,3 +133,40 @@ TCollection_ExtendedString PCDM_StorageDriver::GetFormat () const
|
||||
{
|
||||
return myFormat;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IsError
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean PCDM_StorageDriver::IsError () const
|
||||
{
|
||||
return myIsError;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetIsError
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void PCDM_StorageDriver::SetIsError(const Standard_Boolean theIsError)
|
||||
{
|
||||
myIsError = theIsError;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : GetStoreStatus
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
PCDM_StoreStatus PCDM_StorageDriver::GetStoreStatus () const
|
||||
{
|
||||
return myStoreStatus;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : SetStoreStatus
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void PCDM_StorageDriver::SetStoreStatus(const PCDM_StoreStatus theStoreStatus)
|
||||
{
|
||||
myStoreStatus = theStoreStatus;
|
||||
}
|
||||
|
Reference in New Issue
Block a user