blob: 8d105351be256b3aa20fb0d24f1e2097a9fd0961 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#include <Storage_Root.ixx>
Storage_Root::Storage_Root() : myRef(0)
{
}
Storage_Root::Storage_Root(const TCollection_AsciiString& aName,const Handle(Standard_Persistent)& anObject) : myRef(0)
{
myName = aName;
myObject = anObject;
if (!anObject.IsNull()) {
myType = anObject->DynamicType()->Name();
}
}
void Storage_Root::SetName(const TCollection_AsciiString& aName)
{
myName = aName;
}
TCollection_AsciiString Storage_Root::Name() const
{
return myName;
}
void Storage_Root::SetObject(const Handle(Standard_Persistent)& anObject)
{
myObject = anObject;
if (!anObject.IsNull()) {
myType = anObject->DynamicType()->Name();
}
}
Handle(Standard_Persistent) Storage_Root::Object() const
{
return myObject;
}
TCollection_AsciiString Storage_Root::Type() const
{
return myType;
}
void Storage_Root::SetReference(const Standard_Integer aRef)
{
myRef = aRef;
}
Standard_Integer Storage_Root::Reference() const
{
return myRef;
}
void Storage_Root::SetType(const TCollection_AsciiString& aType)
{
myType = aType;
}
|