0022627: Change OCCT memory management defaults
[occt.git] / src / Standard / Standard_Persistent_proto.hxx
CommitLineData
7fd59977 1#ifndef _Standard_Persistent_proto_HeaderFile
2#define _Standard_Persistent_proto_HeaderFile
3
4#ifndef _Standard_Macro_HeaderFile
5#include <Standard_Macro.hxx>
6#endif
1c35b92f 7#ifndef _Standard_DefineAlloc_HeaderFile
8#include <Standard_DefineAlloc.hxx>
9#endif
7fd59977 10#ifndef _Standard_PrimitiveTypes_HeaderFile
11#include <Standard_PrimitiveTypes.hxx>
12#endif
13#ifndef _Standard_HeaderFile
14#include <Standard.hxx>
15#endif
16
17class Handle_Standard_Persistent;
18class Standard_Type;
19class Handle_Standard_Type;
20class Standard_Type;
21
22class Storage_stCONSTclCOM;
34781c33 23Standard_EXPORT const Handle_Standard_Type& Standard_Persistent_Type_();
7fd59977 24
25class Standard_Persistent
26{
27friend class Handle(Standard_Persistent);
28friend class Storage_Schema;
29
30private:
31 Standard_Integer count;
32 Standard_Integer _typenum;
33 Standard_Integer _refnum;
34public:
1c35b92f 35
36 DEFINE_STANDARD_ALLOC
7fd59977 37
7fd59977 38 Standard_EXPORT virtual Handle_Standard_Persistent This() const;
39 Standard_EXPORT virtual Handle_Standard_Persistent ShallowCopy () const;
40 Standard_EXPORT virtual void Delete() const;
41 Standard_EXPORT virtual ~Standard_Persistent();
42
43 Standard_EXPORT Standard_Persistent& operator= (const Standard_Persistent&);
44 Standard_Persistent() : count(0),_typenum(0),_refnum(0) {};
45 Standard_Persistent(const Standard_Persistent&) : count(0),_typenum(0),_refnum(0) {};
46 Standard_Persistent(const Storage_stCONSTclCOM&) : count(0),_typenum(0),_refnum(0) {}
47
48 Standard_EXPORT virtual const Handle_Standard_Type& DynamicType() const;
49 Standard_EXPORT Standard_Boolean IsKind(const Handle_Standard_Type&)const;
50 Standard_EXPORT Standard_Boolean IsInstance(const Handle_Standard_Type&)const;
7fd59977 51 Standard_EXPORT virtual void ShallowDump(Standard_OStream& ) const;
52};
53
54#include <Handle_Standard_Persistent.hxx>
55
56#endif
57
58
59
60
61
62
63
64