b311480e |
1 | // Copyright (c) 1998-1999 Matra Datavision |
973c2be1 |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | // |
973c2be1 |
4 | // This file is part of Open CASCADE Technology software library. |
b311480e |
5 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
11 | // |
973c2be1 |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
b311480e |
14 | |
7fd59977 |
15 | #include <Storage_HeaderData.ixx> |
16 | |
17 | Storage_HeaderData::Storage_HeaderData() : myNBObj(0), myErrorStatus(Storage_VSOk) |
18 | { |
19 | } |
20 | |
21 | TCollection_AsciiString Storage_HeaderData::CreationDate() const |
22 | { |
23 | return myDate; |
24 | } |
25 | |
26 | void Storage_HeaderData::SetSchemaVersion(const TCollection_AsciiString& aVersion) |
27 | { |
28 | mySchemaVersion = aVersion; |
29 | } |
30 | |
31 | TCollection_AsciiString Storage_HeaderData::SchemaVersion() const |
32 | { |
33 | return mySchemaVersion; |
34 | } |
35 | |
36 | void Storage_HeaderData::SetSchemaName(const TCollection_AsciiString& aSchemaName) |
37 | { |
38 | mySchemaName = aSchemaName; |
39 | } |
40 | |
41 | TCollection_AsciiString Storage_HeaderData::SchemaName() const |
42 | { |
43 | return mySchemaName; |
44 | } |
45 | |
46 | void Storage_HeaderData::SetApplicationVersion(const TCollection_AsciiString& aVersion) |
47 | { |
48 | myApplicationVersion = aVersion; |
49 | } |
50 | |
51 | TCollection_AsciiString Storage_HeaderData::ApplicationVersion() const |
52 | { |
53 | return myApplicationVersion; |
54 | } |
55 | |
56 | void Storage_HeaderData::SetApplicationName(const TCollection_ExtendedString& aName) |
57 | { |
58 | myApplicationName = aName; |
59 | } |
60 | |
61 | TCollection_ExtendedString Storage_HeaderData::ApplicationName() const |
62 | { |
63 | return myApplicationName; |
64 | } |
65 | |
66 | void Storage_HeaderData::SetDataType(const TCollection_ExtendedString& aName) |
67 | { |
68 | myDataType = aName; |
69 | } |
70 | |
71 | TCollection_ExtendedString Storage_HeaderData::DataType() const |
72 | { |
73 | return myDataType; |
74 | } |
75 | |
76 | void Storage_HeaderData::AddToUserInfo(const TCollection_AsciiString& theUserInfo) |
77 | { |
78 | myUserInfo.Append(theUserInfo); |
79 | } |
80 | |
81 | const TColStd_SequenceOfAsciiString& Storage_HeaderData::UserInfo() const |
82 | { |
83 | return myUserInfo; |
84 | } |
85 | |
86 | void Storage_HeaderData::AddToComments(const TCollection_ExtendedString& aComments) |
87 | { |
88 | myComments.Append(aComments); |
89 | } |
90 | |
91 | const TColStd_SequenceOfExtendedString& Storage_HeaderData::Comments() const |
92 | { |
93 | return myComments; |
94 | } |
95 | |
96 | Standard_Integer Storage_HeaderData::NumberOfObjects() const |
97 | { |
98 | return myNBObj; |
99 | } |
100 | |
101 | void Storage_HeaderData::SetNumberOfObjects(const Standard_Integer anObjectNumber) |
102 | { |
103 | myNBObj = anObjectNumber; |
104 | } |
105 | |
106 | void Storage_HeaderData::SetStorageVersion(const TCollection_AsciiString& v) |
107 | { |
108 | myStorageVersion = v; |
109 | } |
110 | |
111 | void Storage_HeaderData::SetCreationDate(const TCollection_AsciiString& d) |
112 | { |
113 | myDate = d; |
114 | } |
115 | |
116 | TCollection_AsciiString Storage_HeaderData::StorageVersion() const |
117 | { |
118 | return myStorageVersion; |
119 | } |
120 | |
121 | Storage_Error Storage_HeaderData::ErrorStatus() const |
122 | { |
123 | return myErrorStatus; |
124 | } |
125 | |
126 | void Storage_HeaderData::SetErrorStatus(const Storage_Error anError) |
127 | { |
128 | myErrorStatus = anError; |
129 | } |
130 | |
131 | TCollection_AsciiString Storage_HeaderData::ErrorStatusExtension() const |
132 | { |
133 | return myErrorStatusExt; |
134 | } |
135 | |
136 | void Storage_HeaderData::SetErrorStatusExtension(const TCollection_AsciiString& anErrorExt) |
137 | { |
138 | myErrorStatusExt = anErrorExt; |
139 | } |
140 | |
141 | void Storage_HeaderData::ClearErrorStatus() |
142 | { |
143 | myErrorStatus = Storage_VSOk; |
144 | myErrorStatusExt.Clear(); |
145 | } |
146 | |