mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028832: MMgt_TShared can be replaced by Standard_Transient
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
#ifndef _StdStorage_Data_HeaderFile
|
||||
#define _StdStorage_Data_HeaderFile
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Macro.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
class StdStorage_HeaderData;
|
||||
class StdStorage_TypeData;
|
||||
class StdStorage_RootData;
|
||||
@@ -49,7 +51,7 @@ class StdStorage_RootData;
|
||||
//! mechanism: external references are not
|
||||
//! supported by Storage_Schema algorithm
|
||||
class StdStorage_Data
|
||||
: public MMgt_TShared
|
||||
: public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_ExtendedString.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_HeaderData, MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_HeaderData, Standard_Transient)
|
||||
|
||||
StdStorage_HeaderData::StdStorage_HeaderData()
|
||||
: myNBObj(0), myErrorStatus(Storage_VSOk)
|
||||
|
@@ -23,25 +23,25 @@
|
||||
#include <TColStd_SequenceOfAsciiString.hxx>
|
||||
#include <TColStd_SequenceOfExtendedString.hxx>
|
||||
#include <Storage_Error.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
class Storage_BaseDriver;
|
||||
class TCollection_AsciiString;
|
||||
class TCollection_ExtendedString;
|
||||
|
||||
class StdStorage_HeaderData;
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_HeaderData, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_HeaderData, Standard_Transient)
|
||||
|
||||
//! Storage header data section that contains some
|
||||
//! auxiliary information (application name, schema version,
|
||||
//! creation date, comments and so on...)
|
||||
class StdStorage_HeaderData
|
||||
: public MMgt_TShared
|
||||
: public Standard_Transient
|
||||
{
|
||||
friend class StdStorage_Data;
|
||||
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_HeaderData, MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_HeaderData, Standard_Transient)
|
||||
|
||||
//! Reads the header data section from the container defined by theDriver.
|
||||
//! Returns Standard_True in case of success. Otherwise, one need to get
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#include <StdStorage_Root.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_Root, MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_Root, Standard_Transient)
|
||||
|
||||
StdStorage_Root::StdStorage_Root()
|
||||
: myRef(0)
|
||||
|
@@ -19,23 +19,23 @@
|
||||
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
class StdObjMgt_Persistent;
|
||||
class Storage_Schema;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
class Storage_Root;
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_Root, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_Root, Standard_Transient)
|
||||
|
||||
//! Describes a named persistent root
|
||||
class StdStorage_Root
|
||||
: public MMgt_TShared
|
||||
: public Standard_Transient
|
||||
{
|
||||
friend class StdStorage_RootData;
|
||||
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_Root, MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_Root, Standard_Transient)
|
||||
|
||||
//! Creates an empty root
|
||||
Standard_EXPORT StdStorage_Root();
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include <Storage_DataMapIteratorOfMapOfPers.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_RootData, MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_RootData, Standard_Transient)
|
||||
|
||||
StdStorage_RootData::StdStorage_RootData()
|
||||
: myErrorStatus(Storage_VSOk)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <Storage_Error.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <StdStorage_MapOfRoots.hxx>
|
||||
@@ -32,17 +32,17 @@ class TCollection_AsciiString;
|
||||
class StdObjMgt_Persistent;
|
||||
|
||||
class StdStorage_RootData;
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_RootData, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_RootData, Standard_Transient)
|
||||
|
||||
//! Storage root data section contains root persistent objects
|
||||
class StdStorage_RootData
|
||||
: public MMgt_TShared
|
||||
: public Standard_Transient
|
||||
{
|
||||
friend class StdStorage_Data;
|
||||
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_RootData, MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_RootData, Standard_Transient)
|
||||
|
||||
//! Reads the root data section from the container defined by theDriver.
|
||||
//! Returns Standard_True in case of success. Otherwise, one need to get
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <Storage_StreamTypeMismatchError.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_TypeData, MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdStorage_TypeData, Standard_Transient)
|
||||
|
||||
StdStorage_TypeData::StdStorage_TypeData()
|
||||
: myTypeId(0),
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include <StdStorage_MapOfTypes.hxx>
|
||||
#include <Storage_Error.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <StdObjMgt_MapOfInstantiators.hxx>
|
||||
@@ -30,18 +30,18 @@ class Storage_BaseDriver;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
class StdStorage_TypeData;
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_TypeData, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(StdStorage_TypeData, Standard_Transient)
|
||||
|
||||
//! Storage type data section keeps association between
|
||||
//! persistent textual types and their numbers
|
||||
class StdStorage_TypeData
|
||||
: public MMgt_TShared
|
||||
: public Standard_Transient
|
||||
{
|
||||
friend class StdStorage_Data;
|
||||
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_TypeData, MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(StdStorage_TypeData, Standard_Transient)
|
||||
|
||||
//! Reads the type data section from the container defined by theDriver.
|
||||
//! Returns Standard_True in case of success. Otherwise, one need to get
|
||||
|
Reference in New Issue
Block a user