0022749: Segfault in HashCode() of Standard_Transient
[occt.git] / src / Standard / Standard_ShallowDump.cxx
1 #include <Standard_Transient.hxx>
2 #include <Standard_Type.hxx>
3
4 #include <Standard_TypeMismatch.hxx>
5 #include <Standard_Persistent.hxx>
6
7 // now with these two proto, we don't need the include of Standard_Persistent
8 //
9 class Handle(Standard_Persistent);
10 Handle_Standard_Type &Standard_Persistent_Type_();
11
12 //============================================================================
13 void ShallowDump(const Handle(Standard_Persistent)& me, Standard_OStream &aOut)
14 {
15   Handle(Standard_Type) aType = me->DynamicType();
16
17   aOut << "class " << aType->Name() << endl;
18 }
19
20 //============================================================================
21 void ShallowDump(const Handle(Standard_Transient)& me, Standard_OStream &aOut)
22 {
23   Handle(Standard_Type) aType = me->DynamicType();
24
25   aOut << "class " << aType->Name() << endl;
26 }
27