repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haikudepot / server / dumpexportpkg / DumpExportPkgVersion.cpp
blobf8703ce2bca347ccec79b41313c9001aa6492267
1 /*
2 * Generated Model Object
3 * source json-schema : dumpexport.json
4 * generated at : 2017-11-05T22:30:10.255929
5 */
6 #include "DumpExportPkgVersion.h"
9 DumpExportPkgVersion::DumpExportPkgVersion()
11 fMajor = NULL;
12 fPayloadLength = NULL;
13 fDescription = NULL;
14 fTitle = NULL;
15 fSummary = NULL;
16 fMicro = NULL;
17 fPreRelease = NULL;
18 fArchitectureCode = NULL;
19 fMinor = NULL;
20 fRevision = NULL;
24 DumpExportPkgVersion::~DumpExportPkgVersion()
26 if (fMajor != NULL) {
27 delete fMajor;
30 if (fPayloadLength != NULL) {
31 delete fPayloadLength;
34 if (fDescription != NULL) {
35 delete fDescription;
38 if (fTitle != NULL) {
39 delete fTitle;
42 if (fSummary != NULL) {
43 delete fSummary;
46 if (fMicro != NULL) {
47 delete fMicro;
50 if (fPreRelease != NULL) {
51 delete fPreRelease;
54 if (fArchitectureCode != NULL) {
55 delete fArchitectureCode;
58 if (fMinor != NULL) {
59 delete fMinor;
62 if (fRevision != NULL) {
63 delete fRevision;
68 BString*
69 DumpExportPkgVersion::Major()
71 return fMajor;
75 void
76 DumpExportPkgVersion::SetMajor(BString* value)
78 fMajor = value;
82 void
83 DumpExportPkgVersion::SetMajorNull()
85 if (!MajorIsNull()) {
86 delete fMajor;
87 fMajor = NULL;
92 bool
93 DumpExportPkgVersion::MajorIsNull()
95 return fMajor == NULL;
99 int64
100 DumpExportPkgVersion::PayloadLength()
102 return *fPayloadLength;
106 void
107 DumpExportPkgVersion::SetPayloadLength(int64 value)
109 if (PayloadLengthIsNull())
110 fPayloadLength = new int64[1];
111 fPayloadLength[0] = value;
115 void
116 DumpExportPkgVersion::SetPayloadLengthNull()
118 if (!PayloadLengthIsNull()) {
119 delete fPayloadLength;
120 fPayloadLength = NULL;
125 bool
126 DumpExportPkgVersion::PayloadLengthIsNull()
128 return fPayloadLength == NULL;
132 BString*
133 DumpExportPkgVersion::Description()
135 return fDescription;
139 void
140 DumpExportPkgVersion::SetDescription(BString* value)
142 fDescription = value;
146 void
147 DumpExportPkgVersion::SetDescriptionNull()
149 if (!DescriptionIsNull()) {
150 delete fDescription;
151 fDescription = NULL;
156 bool
157 DumpExportPkgVersion::DescriptionIsNull()
159 return fDescription == NULL;
163 BString*
164 DumpExportPkgVersion::Title()
166 return fTitle;
170 void
171 DumpExportPkgVersion::SetTitle(BString* value)
173 fTitle = value;
177 void
178 DumpExportPkgVersion::SetTitleNull()
180 if (!TitleIsNull()) {
181 delete fTitle;
182 fTitle = NULL;
187 bool
188 DumpExportPkgVersion::TitleIsNull()
190 return fTitle == NULL;
194 BString*
195 DumpExportPkgVersion::Summary()
197 return fSummary;
201 void
202 DumpExportPkgVersion::SetSummary(BString* value)
204 fSummary = value;
208 void
209 DumpExportPkgVersion::SetSummaryNull()
211 if (!SummaryIsNull()) {
212 delete fSummary;
213 fSummary = NULL;
218 bool
219 DumpExportPkgVersion::SummaryIsNull()
221 return fSummary == NULL;
225 BString*
226 DumpExportPkgVersion::Micro()
228 return fMicro;
232 void
233 DumpExportPkgVersion::SetMicro(BString* value)
235 fMicro = value;
239 void
240 DumpExportPkgVersion::SetMicroNull()
242 if (!MicroIsNull()) {
243 delete fMicro;
244 fMicro = NULL;
249 bool
250 DumpExportPkgVersion::MicroIsNull()
252 return fMicro == NULL;
256 BString*
257 DumpExportPkgVersion::PreRelease()
259 return fPreRelease;
263 void
264 DumpExportPkgVersion::SetPreRelease(BString* value)
266 fPreRelease = value;
270 void
271 DumpExportPkgVersion::SetPreReleaseNull()
273 if (!PreReleaseIsNull()) {
274 delete fPreRelease;
275 fPreRelease = NULL;
280 bool
281 DumpExportPkgVersion::PreReleaseIsNull()
283 return fPreRelease == NULL;
287 BString*
288 DumpExportPkgVersion::ArchitectureCode()
290 return fArchitectureCode;
294 void
295 DumpExportPkgVersion::SetArchitectureCode(BString* value)
297 fArchitectureCode = value;
301 void
302 DumpExportPkgVersion::SetArchitectureCodeNull()
304 if (!ArchitectureCodeIsNull()) {
305 delete fArchitectureCode;
306 fArchitectureCode = NULL;
311 bool
312 DumpExportPkgVersion::ArchitectureCodeIsNull()
314 return fArchitectureCode == NULL;
318 BString*
319 DumpExportPkgVersion::Minor()
321 return fMinor;
325 void
326 DumpExportPkgVersion::SetMinor(BString* value)
328 fMinor = value;
332 void
333 DumpExportPkgVersion::SetMinorNull()
335 if (!MinorIsNull()) {
336 delete fMinor;
337 fMinor = NULL;
342 bool
343 DumpExportPkgVersion::MinorIsNull()
345 return fMinor == NULL;
349 int64
350 DumpExportPkgVersion::Revision()
352 return *fRevision;
356 void
357 DumpExportPkgVersion::SetRevision(int64 value)
359 if (RevisionIsNull())
360 fRevision = new int64[1];
361 fRevision[0] = value;
365 void
366 DumpExportPkgVersion::SetRevisionNull()
368 if (!RevisionIsNull()) {
369 delete fRevision;
370 fRevision = NULL;
375 bool
376 DumpExportPkgVersion::RevisionIsNull()
378 return fRevision == NULL;