]> git.datanom.net - lensdb.git/blob - lib/exiftool/TagInfo.cpp
Readd missing feature
[lensdb.git] / lib / exiftool / TagInfo.cpp
1 //------------------------------------------------------------------------------
2 // File: TagInfo.cpp
3 //
4 // Description: Tag information object
5 //
6 // License: Copyright 2013-2019, Phil Harvey (philharvey66 at gmail.com)
7 //
8 // This is software, in whole or part, is free for use in
9 // non-commercial applications, provided that this copyright notice
10 // is retained. A licensing fee may be required for use in a
11 // commercial application.
12 //
13 // Created: 2013-11-23 - Phil Harvey
14 //------------------------------------------------------------------------------
15
16 #include <stdlib.h>
17 #include "TagInfo.h"
18
19 //------------------------------------------------------------------------------
20 TagInfo::TagInfo()
21 : name(NULL), desc(NULL), id(NULL), value(NULL), valueLen(0),
22 num(NULL), numLen(0), copyNum(0), next(NULL)
23 {
24 group[0] = group[1] = group[2] = NULL;
25 }
26
27 //------------------------------------------------------------------------------
28 // delete entire linked list of TagInfo objects
29 TagInfo::~TagInfo()
30 {
31 // delete our members
32 delete [] group[0];
33 delete [] group[1];
34 delete [] group[2];
35 delete [] name;
36 delete [] desc;
37 delete [] id;
38 if (num != value) delete [] num; // delete numerical value if unique
39 delete [] value;
40
41 // delete remaining elements of linked list
42 while (next) {
43 TagInfo *info = next;
44 // remove next entry from the list, then delete it
45 next = info->next;
46 info->next = (TagInfo *)NULL;
47 delete info;
48 }
49 }
50
51 // end
52
This page took 0.863321 seconds and 6 git commands to generate.