File: classExiv2_1_1TiffComponent.html

package info (click to toggle)
exiv2 0.10-1.4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 13,124 kB
  • ctags: 5,665
  • sloc: cpp: 20,697; xml: 15,118; sh: 10,526; ansic: 1,887; makefile: 367; awk: 64; python: 36
file content (150 lines) | stat: -rw-r--r-- 14,485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Exiv2: Exiv2::TiffComponent Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1TiffComponent.html">TiffComponent</a></div>
<h1>Exiv2::TiffComponent Class Reference</h1><!-- doxytag: class="Exiv2::TiffComponent" -->Interface class for components of a TIFF directory hierarchy (Composite pattern). Both TIFF directories as well as entries implement this interface. A component can be uniquely identified by a tag, group tupel. This class is implemented as a NVI (Non-Virtual Interface) and it has an interface for visitors (Visitor pattern).  
<a href="#_details">More...</a>
<p>
<code>#include &lt;tiffcomposite.hpp&gt;</code>
<p>
Inheritance diagram for Exiv2::TiffComponent:<p><center><img src="classExiv2_1_1TiffComponent__inherit__graph.png" border="0" usemap="#Exiv2_1_1TiffComponent__inherit__map" alt="Inheritance graph"></center>
<map name="Exiv2_1_1TiffComponent__inherit__map">
<area href="classExiv2_1_1TiffDirectory.html" shape="rect" coords="6,81,139,105" alt="">
<area href="classExiv2_1_1TiffEntryBase.html" shape="rect" coords="163,81,304,105" alt="">
<area href="classExiv2_1_1TiffIfdMakernote.html" shape="rect" coords="328,81,486,105" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classExiv2_1_1TiffComponent-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="61ce4dcede30ca3d1b34178cc12a0d0d"></a><!-- doxytag: member="Exiv2::TiffComponent::AutoPtr" ref="61ce4dcede30ca3d1b34178cc12a0d0d" args="" -->
typedef std::auto_ptr&lt; <a class="el" href="classExiv2_1_1TiffComponent.html">TiffComponent</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#61ce4dcede30ca3d1b34178cc12a0d0d">AutoPtr</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classExiv2_1_1TiffComponent.html">TiffComponent</a> auto_ptr type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e514b39ca779644efe211bb4107e52e"></a><!-- doxytag: member="Exiv2::TiffComponent::Components" ref="0e514b39ca779644efe211bb4107e52e" args="" -->
typedef std::vector&lt; <a class="el" href="classExiv2_1_1TiffComponent.html">TiffComponent</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#0e514b39ca779644efe211bb4107e52e">Components</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Container type to hold all metadata. <br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="209050c38405768d03706397f01e214f"></a><!-- doxytag: member="Exiv2::TiffComponent::TiffComponent" ref="209050c38405768d03706397f01e214f" args="(uint16_t tag, uint16_t group)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#209050c38405768d03706397f01e214f">TiffComponent</a> (uint16_t tag, uint16_t group)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="282f3802751753e22af605c3098f9f12"></a><!-- doxytag: member="Exiv2::TiffComponent::~TiffComponent" ref="282f3802751753e22af605c3098f9f12" args="()" -->
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#282f3802751753e22af605c3098f9f12">~TiffComponent</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual destructor. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b5a344fa9ac7cc023c72f59fb98ff8f7"></a><!-- doxytag: member="Exiv2::TiffComponent::addChild" ref="b5a344fa9ac7cc023c72f59fb98ff8f7" args="(AutoPtr tiffComponent)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#b5a344fa9ac7cc023c72f59fb98ff8f7">addChild</a> (<a class="el" href="classExiv2_1_1TiffComponent.html#61ce4dcede30ca3d1b34178cc12a0d0d">AutoPtr</a> tiffComponent)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a child to the component. Default is to do nothing. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe05803b8be3dd464b3944e7bc5d7703"></a><!-- doxytag: member="Exiv2::TiffComponent::addNext" ref="fe05803b8be3dd464b3944e7bc5d7703" args="(AutoPtr tiffComponent)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#fe05803b8be3dd464b3944e7bc5d7703">addNext</a> (<a class="el" href="classExiv2_1_1TiffComponent.html#61ce4dcede30ca3d1b34178cc12a0d0d">AutoPtr</a> tiffComponent)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a "next" component to the component. Default is to do nothing. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#0572488189b0c63452f3f1ef5ef07f7b">accept</a> (<a class="el" href="classExiv2_1_1TiffVisitor.html">TiffVisitor</a> &amp;visitor)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Interface to accept visitors (Visitor pattern).  <a href="#0572488189b0c63452f3f1ef5ef07f7b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56739cf19e5c3533c2b11b2ce7320d3d"></a><!-- doxytag: member="Exiv2::TiffComponent::setStart" ref="56739cf19e5c3533c2b11b2ce7320d3d" args="(const byte *pData)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#56739cf19e5c3533c2b11b2ce7320d3d">setStart</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pData)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set a pointer to the start of the binary representation of the component in a memory buffer. The buffer must be allocated and freed outside of this class. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f7db512d566803d69de826e23ac47f1"></a><!-- doxytag: member="Exiv2::TiffComponent::tag" ref="0f7db512d566803d69de826e23ac47f1" args="() const " -->
uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#0f7db512d566803d69de826e23ac47f1">tag</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the tag of this entry. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a4f25c29ee147f8de3790779dbd625c"></a><!-- doxytag: member="Exiv2::TiffComponent::group" ref="3a4f25c29ee147f8de3790779dbd625c" args="() const " -->
uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#3a4f25c29ee147f8de3790779dbd625c">group</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the group id of this component. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4569c30947a57e091fe0bc88225723be"></a><!-- doxytag: member="Exiv2::TiffComponent::groupName" ref="4569c30947a57e091fe0bc88225723be" args="() const " -->
std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#4569c30947a57e091fe0bc88225723be">groupName</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the group name of this component. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ec7b8a04ac3de3c99cb6ac10a08714e"></a><!-- doxytag: member="Exiv2::TiffComponent::start" ref="9ec7b8a04ac3de3c99cb6ac10a08714e" args="() const " -->
const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#9ec7b8a04ac3de3c99cb6ac10a08714e">start</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a pointer to the start of the binary representation of the component. <br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c2ae8d5392378b1d232acd0f694e63ea"></a><!-- doxytag: member="Exiv2::TiffComponent::doAddChild" ref="c2ae8d5392378b1d232acd0f694e63ea" args="(AutoPtr tiffComponent)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#c2ae8d5392378b1d232acd0f694e63ea">doAddChild</a> (<a class="el" href="classExiv2_1_1TiffComponent.html#61ce4dcede30ca3d1b34178cc12a0d0d">AutoPtr</a> tiffComponent)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Implements <a class="el" href="classExiv2_1_1TiffComponent.html#b5a344fa9ac7cc023c72f59fb98ff8f7">addChild()</a>. The default implementation does nothing. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d4f95b483bd3868870bad06aa39988f"></a><!-- doxytag: member="Exiv2::TiffComponent::doAddNext" ref="2d4f95b483bd3868870bad06aa39988f" args="(AutoPtr tiffComponent)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#2d4f95b483bd3868870bad06aa39988f">doAddNext</a> (<a class="el" href="classExiv2_1_1TiffComponent.html#61ce4dcede30ca3d1b34178cc12a0d0d">AutoPtr</a> tiffComponent)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Implements <a class="el" href="classExiv2_1_1TiffComponent.html#fe05803b8be3dd464b3944e7bc5d7703">addNext()</a>. The default implementation does nothing. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e853b3dbbd3e771ed88c9a7a6b61a681"></a><!-- doxytag: member="Exiv2::TiffComponent::doAccept" ref="e853b3dbbd3e771ed88c9a7a6b61a681" args="(TiffVisitor &amp;visitor)=0" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1TiffComponent.html#e853b3dbbd3e771ed88c9a7a6b61a681">doAccept</a> (<a class="el" href="classExiv2_1_1TiffVisitor.html">TiffVisitor</a> &amp;visitor)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Implements <a class="el" href="classExiv2_1_1TiffComponent.html#0572488189b0c63452f3f1ef5ef07f7b">accept()</a>. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Interface class for components of a TIFF directory hierarchy (Composite pattern). Both TIFF directories as well as entries implement this interface. A component can be uniquely identified by a tag, group tupel. This class is implemented as a NVI (Non-Virtual Interface) and it has an interface for visitors (Visitor pattern). 
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="0572488189b0c63452f3f1ef5ef07f7b"></a><!-- doxytag: member="Exiv2::TiffComponent::accept" ref="0572488189b0c63452f3f1ef5ef07f7b" args="(TiffVisitor &amp;visitor)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void Exiv2::TiffComponent::accept           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classExiv2_1_1TiffVisitor.html">TiffVisitor</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>visitor</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Interface to accept visitors (Visitor pattern). 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>visitor</em>&nbsp;</td><td>The visitor. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="tiffcomposite_8hpp.html">tiffcomposite.hpp</a><li>tiffcomposite.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:55:23 2006 for Exiv2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>