1 // Copyright (c) 1998-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License 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.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #include <Standard_Transient.hxx>
17 // The Initialization of the Standard_Transient variables
18 IMPLEMENT_STANDARD_TYPE(Standard_Transient)
19 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
20 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
21 IMPLEMENT_STANDARD_TYPE_END(Standard_Transient)
23 IMPLEMENT_STANDARD_RTTI(Standard_Transient)
26 // The Standard_Transient Methods
31 Handle(Standard_Transient) Standard_Transient::This() const
33 return Handle(Standard_Transient)(this);
38 Standard_Transient::~Standard_Transient()
44 Standard_Boolean Standard_Transient::IsInstance(const Handle(Standard_Type) &AType) const
46 return (Standard_Boolean) (AType == DynamicType());
51 Standard_Boolean Standard_Transient::IsInstance(const Standard_CString theTypeName) const
53 return IsSimilar ( DynamicType()->Name(), theTypeName );
58 Standard_Boolean Standard_Transient::IsKind (const Handle(Standard_Type)& aType) const
60 return DynamicType()->SubType ( aType );
65 Standard_Boolean Standard_Transient::IsKind (const Standard_CString theTypeName) const
67 return DynamicType()->SubType ( theTypeName );
70 void Standard_Transient::Delete() const
72 delete((Standard_Transient *)this);