summaryrefslogtreecommitdiff
path: root/src/Standard/Standard_ShallowDump.cxx
blob: 410c29a5363139d855b412a63af796feded138ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>

#include <Standard_TypeMismatch.hxx>
#include <Standard_Persistent.hxx>

// now with these two proto, we don't need the include of Standard_Persistent
//
class Handle(Standard_Persistent);
Handle_Standard_Type &Standard_Persistent_Type_();

//============================================================================
void ShallowDump(const Handle(Standard_Persistent)& me, Standard_OStream &aOut)
{
  Handle(Standard_Type) aType = me->DynamicType();

  aOut << "class " << aType->Name() << endl;
}

//============================================================================
void ShallowDump(const Handle(Standard_Transient)& me, Standard_OStream &aOut)
{
  Handle(Standard_Type) aType = me->DynamicType();

  aOut << "class " << aType->Name() << endl;
}