0024512: clang++ compiler complains about extra semicolon
[occt.git] / src / Standard / Standard_Persistent_proto.hxx
CommitLineData
b311480e 1// Copyright (c) 1998-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
973c2be1 6// This library is free software; you can redistribute it and / or modify it
7// under the terms of the GNU Lesser General Public version 2.1 as published
8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15#ifndef _Standard_Persistent_proto_HeaderFile
16#define _Standard_Persistent_proto_HeaderFile
17
18#ifndef _Standard_Macro_HeaderFile
19#include <Standard_Macro.hxx>
20#endif
1c35b92f 21#ifndef _Standard_DefineAlloc_HeaderFile
22#include <Standard_DefineAlloc.hxx>
23#endif
7fd59977 24#ifndef _Standard_PrimitiveTypes_HeaderFile
25#include <Standard_PrimitiveTypes.hxx>
26#endif
27#ifndef _Standard_HeaderFile
28#include <Standard.hxx>
29#endif
30
31class Handle_Standard_Persistent;
32class Standard_Type;
33class Handle_Standard_Type;
34class Standard_Type;
35
36class Storage_stCONSTclCOM;
34781c33 37Standard_EXPORT const Handle_Standard_Type& Standard_Persistent_Type_();
7fd59977 38
39class Standard_Persistent
40{
41friend class Handle(Standard_Persistent);
42friend class Storage_Schema;
43
44private:
45 Standard_Integer count;
46 Standard_Integer _typenum;
47 Standard_Integer _refnum;
48public:
1c35b92f 49
50 DEFINE_STANDARD_ALLOC
7fd59977 51
7fd59977 52 Standard_EXPORT virtual Handle_Standard_Persistent This() const;
53 Standard_EXPORT virtual Handle_Standard_Persistent ShallowCopy () const;
54 Standard_EXPORT virtual void Delete() const;
55 Standard_EXPORT virtual ~Standard_Persistent();
56
57 Standard_EXPORT Standard_Persistent& operator= (const Standard_Persistent&);
5640d653
DB
58 Standard_Persistent() : count(0),_typenum(0),_refnum(0) {}
59 Standard_Persistent(const Standard_Persistent&) : count(0),_typenum(0),_refnum(0) {}
7fd59977 60 Standard_Persistent(const Storage_stCONSTclCOM&) : count(0),_typenum(0),_refnum(0) {}
61
62 Standard_EXPORT virtual const Handle_Standard_Type& DynamicType() const;
63 Standard_EXPORT Standard_Boolean IsKind(const Handle_Standard_Type&)const;
64 Standard_EXPORT Standard_Boolean IsInstance(const Handle_Standard_Type&)const;
7fd59977 65 Standard_EXPORT virtual void ShallowDump(Standard_OStream& ) const;
66};
67
68#include <Handle_Standard_Persistent.hxx>
69
70#endif
71
72
73
74
75
76
77
78