973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
973c2be1 |
5 | // This library is free software; you can redistribute it and / or modify it |
6 | // under the terms of the GNU Lesser General Public 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. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
7fd59977 |
14 | #include <HeaderSection_FileName.ixx> |
15 | |
16 | |
17 | HeaderSection_FileName::HeaderSection_FileName () {} |
18 | |
19 | void HeaderSection_FileName::Init( |
20 | const Handle(TCollection_HAsciiString)& aName, |
21 | const Handle(TCollection_HAsciiString)& aTimeStamp, |
22 | const Handle(Interface_HArray1OfHAsciiString)& aAuthor, |
23 | const Handle(Interface_HArray1OfHAsciiString)& aOrganization, |
24 | const Handle(TCollection_HAsciiString)& aPreprocessorVersion, |
25 | const Handle(TCollection_HAsciiString)& aOriginatingSystem, |
26 | const Handle(TCollection_HAsciiString)& aAuthorisation) |
27 | { |
28 | // --- class own fields --- |
29 | name = aName; |
30 | timeStamp = aTimeStamp; |
31 | author = aAuthor; |
32 | organization = aOrganization; |
33 | preprocessorVersion = aPreprocessorVersion; |
34 | originatingSystem = aOriginatingSystem; |
35 | authorisation = aAuthorisation; |
36 | } |
37 | |
38 | |
39 | void HeaderSection_FileName::SetName(const Handle(TCollection_HAsciiString)& aName) |
40 | { |
41 | name = aName; |
42 | } |
43 | |
44 | Handle(TCollection_HAsciiString) HeaderSection_FileName::Name() const |
45 | { |
46 | return name; |
47 | } |
48 | |
49 | void HeaderSection_FileName::SetTimeStamp(const Handle(TCollection_HAsciiString)& aTimeStamp) |
50 | { |
51 | timeStamp = aTimeStamp; |
52 | } |
53 | |
54 | Handle(TCollection_HAsciiString) HeaderSection_FileName::TimeStamp() const |
55 | { |
56 | return timeStamp; |
57 | } |
58 | |
59 | void HeaderSection_FileName::SetAuthor(const Handle(Interface_HArray1OfHAsciiString)& aAuthor) |
60 | { |
61 | author = aAuthor; |
62 | } |
63 | |
64 | Handle(Interface_HArray1OfHAsciiString) HeaderSection_FileName::Author() const |
65 | { |
66 | return author; |
67 | } |
68 | |
69 | Handle(TCollection_HAsciiString) HeaderSection_FileName::AuthorValue(const Standard_Integer num) const |
70 | { |
71 | return author->Value(num); |
72 | } |
73 | |
74 | Standard_Integer HeaderSection_FileName::NbAuthor () const |
75 | { |
76 | if (author.IsNull()) return 0; |
77 | return author->Length(); |
78 | } |
79 | |
80 | void HeaderSection_FileName::SetOrganization(const Handle(Interface_HArray1OfHAsciiString)& aOrganization) |
81 | { |
82 | organization = aOrganization; |
83 | } |
84 | |
85 | Handle(Interface_HArray1OfHAsciiString) HeaderSection_FileName::Organization() const |
86 | { |
87 | return organization; |
88 | } |
89 | |
90 | Handle(TCollection_HAsciiString) HeaderSection_FileName::OrganizationValue(const Standard_Integer num) const |
91 | { |
92 | return organization->Value(num); |
93 | } |
94 | |
95 | Standard_Integer HeaderSection_FileName::NbOrganization () const |
96 | { |
97 | if (organization.IsNull()) return 0; |
98 | return organization->Length(); |
99 | } |
100 | |
101 | void HeaderSection_FileName::SetPreprocessorVersion(const Handle(TCollection_HAsciiString)& aPreprocessorVersion) |
102 | { |
103 | preprocessorVersion = aPreprocessorVersion; |
104 | } |
105 | |
106 | Handle(TCollection_HAsciiString) HeaderSection_FileName::PreprocessorVersion() const |
107 | { |
108 | return preprocessorVersion; |
109 | } |
110 | |
111 | void HeaderSection_FileName::SetOriginatingSystem(const Handle(TCollection_HAsciiString)& aOriginatingSystem) |
112 | { |
113 | originatingSystem = aOriginatingSystem; |
114 | } |
115 | |
116 | Handle(TCollection_HAsciiString) HeaderSection_FileName::OriginatingSystem() const |
117 | { |
118 | return originatingSystem; |
119 | } |
120 | |
121 | void HeaderSection_FileName::SetAuthorisation(const Handle(TCollection_HAsciiString)& aAuthorisation) |
122 | { |
123 | authorisation = aAuthorisation; |
124 | } |
125 | |
126 | Handle(TCollection_HAsciiString) HeaderSection_FileName::Authorisation() const |
127 | { |
128 | return authorisation; |
129 | } |