0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / StdStorage / StdStorage_Root.cxx
CommitLineData
ec964372 1// Copyright (c) 2017 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14#include <StdObjMgt_Persistent.hxx>
15#include <Standard_Type.hxx>
16#include <StdStorage_Root.hxx>
17#include <TCollection_AsciiString.hxx>
18
25e59720 19IMPLEMENT_STANDARD_RTTIEXT(StdStorage_Root, Standard_Transient)
ec964372 20
21StdStorage_Root::StdStorage_Root()
22 : myRef(0)
23{
24}
25
26StdStorage_Root::StdStorage_Root(const TCollection_AsciiString& theName,
27 const Handle(StdObjMgt_Persistent)& theObject)
28 : myName(theName)
29 , myType(theObject->PName())
30 , myObject(theObject)
31 , myRef(0)
32{
33}
34
35StdStorage_Root::StdStorage_Root(const TCollection_AsciiString& theName,
36 const Standard_Integer theRef,
37 const TCollection_AsciiString& theType)
38 : myName(theName)
39 , myType(theType)
40 , myRef(theRef)
41{
42}
43
44void StdStorage_Root::SetName(const TCollection_AsciiString& theName)
45{
46 myName = theName;
47}
48
49TCollection_AsciiString StdStorage_Root::Name() const
50{
51 return myName;
52}
53
54void StdStorage_Root::SetObject(const Handle(StdObjMgt_Persistent)& anObject)
55{
56 myObject = anObject;
57}
58
59Handle(StdObjMgt_Persistent) StdStorage_Root::Object() const
60{
61 return myObject;
62}
63
64TCollection_AsciiString StdStorage_Root::Type() const
65{
66 return myType;
67}
68
69void StdStorage_Root::SetReference(const Standard_Integer aRef)
70{
71 myRef = aRef;
72}
73
74Standard_Integer StdStorage_Root::Reference() const
75{
76 return myRef;
77}
78
79void StdStorage_Root::SetType(const TCollection_AsciiString& aType)
80{
81 myType = aType;
82}