summaryrefslogtreecommitdiff
path: root/utils/zenutils/libraries/pelib-0.9/pelib/PeFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/zenutils/libraries/pelib-0.9/pelib/PeFile.cpp')
-rw-r--r--[-rwxr-xr-x]utils/zenutils/libraries/pelib-0.9/pelib/PeFile.cpp338
1 files changed, 169 insertions, 169 deletions
diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/PeFile.cpp b/utils/zenutils/libraries/pelib-0.9/pelib/PeFile.cpp
index 39f2488b81..9e9f2d8691 100755..100644
--- a/utils/zenutils/libraries/pelib-0.9/pelib/PeFile.cpp
+++ b/utils/zenutils/libraries/pelib-0.9/pelib/PeFile.cpp
@@ -1,169 +1,169 @@
1/* 1/*
2* PeLib.cpp - Part of the PeLib library. 2* PeLib.cpp - Part of the PeLib library.
3* 3*
4* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) 4* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com)
5* All rights reserved. 5* All rights reserved.
6* 6*
7* This software is licensed under the zlib/libpng License. 7* This software is licensed under the zlib/libpng License.
8* For more details see http://www.opensource.org/licenses/zlib-license.php 8* For more details see http://www.opensource.org/licenses/zlib-license.php
9* or the license information file (license.htm) in the root directory 9* or the license information file (license.htm) in the root directory
10* of PeLib. 10* of PeLib.
11*/ 11*/
12 12
13#include "PeFile.h" 13#include "PeFile.h"
14 14
15namespace PeLib 15namespace PeLib
16{ 16{
17 PeFile::~PeFile() 17 PeFile::~PeFile()
18 { 18 {
19 } 19 }
20 20
21 PeFile32::PeFile32() : PeFileT<32>() 21 PeFile32::PeFile32() : PeFileT<32>()
22 { 22 {
23 } 23 }
24 24
25 PeFile32::PeFile32(const std::string& strFlename) : PeFileT<32>(strFlename) 25 PeFile32::PeFile32(const std::string& strFlename) : PeFileT<32>(strFlename)
26 { 26 {
27 } 27 }
28 28
29 PeFile64::PeFile64() : PeFileT<64>() 29 PeFile64::PeFile64() : PeFileT<64>()
30 { 30 {
31 } 31 }
32 32
33 PeFile64::PeFile64(const std::string& strFlename) : PeFileT<64>(strFlename) 33 PeFile64::PeFile64(const std::string& strFlename) : PeFileT<64>(strFlename)
34 { 34 {
35 } 35 }
36 36
37 /** 37 /**
38 * @return A reference to the file's MZ header. 38 * @return A reference to the file's MZ header.
39 **/ 39 **/
40 40
41 const MzHeader& PeFile::mzHeader() const 41 const MzHeader& PeFile::mzHeader() const
42 { 42 {
43 return m_mzh; 43 return m_mzh;
44 } 44 }
45 45
46 /** 46 /**
47 * @return A reference to the file's MZ header. 47 * @return A reference to the file's MZ header.
48 **/ 48 **/
49 49
50 MzHeader& PeFile::mzHeader() 50 MzHeader& PeFile::mzHeader()
51 { 51 {
52 return m_mzh; 52 return m_mzh;
53 } 53 }
54 54
55 /** 55 /**
56 * @return A reference to the file's export directory. 56 * @return A reference to the file's export directory.
57 **/ 57 **/
58 58
59 const ExportDirectory& PeFile::expDir() const 59 const ExportDirectory& PeFile::expDir() const
60 { 60 {
61 return m_expdir; 61 return m_expdir;
62 } 62 }
63 63
64 /** 64 /**
65 * @return A reference to the file's export directory. 65 * @return A reference to the file's export directory.
66 **/ 66 **/
67 67
68 ExportDirectory& PeFile::expDir() 68 ExportDirectory& PeFile::expDir()
69 { 69 {
70 return m_expdir; 70 return m_expdir;
71 } 71 }
72 72
73 /** 73 /**
74 * @return A reference to the file's bound import directory. 74 * @return A reference to the file's bound import directory.
75 **/ 75 **/
76 76
77 const BoundImportDirectory& PeFile::boundImpDir() const 77 const BoundImportDirectory& PeFile::boundImpDir() const
78 { 78 {
79 return m_boundimpdir; 79 return m_boundimpdir;
80 } 80 }
81 81
82 /** 82 /**
83 * @return A reference to the file's bound import directory. 83 * @return A reference to the file's bound import directory.
84 **/ 84 **/
85 85
86 BoundImportDirectory& PeFile::boundImpDir() 86 BoundImportDirectory& PeFile::boundImpDir()
87 { 87 {
88 return m_boundimpdir; 88 return m_boundimpdir;
89 } 89 }
90 90
91 /** 91 /**
92 * @return A reference to the file's resource directory. 92 * @return A reference to the file's resource directory.
93 **/ 93 **/
94 94
95 const ResourceDirectory& PeFile::resDir() const 95 const ResourceDirectory& PeFile::resDir() const
96 { 96 {
97 return m_resdir; 97 return m_resdir;
98 } 98 }
99 99
100 /** 100 /**
101 * @return A reference to the file's resource directory. 101 * @return A reference to the file's resource directory.
102 **/ 102 **/
103 103
104 ResourceDirectory& PeFile::resDir() 104 ResourceDirectory& PeFile::resDir()
105 { 105 {
106 return m_resdir; 106 return m_resdir;
107 } 107 }
108 108
109 /** 109 /**
110 * @return A reference to the file's relocations directory. 110 * @return A reference to the file's relocations directory.
111 **/ 111 **/
112 112
113 const RelocationsDirectory& PeFile::relocDir() const 113 const RelocationsDirectory& PeFile::relocDir() const
114 { 114 {
115 return m_relocs; 115 return m_relocs;
116 } 116 }
117 117
118 /** 118 /**
119 * @return A reference to the file's relocations directory. 119 * @return A reference to the file's relocations directory.
120 **/ 120 **/
121 121
122 RelocationsDirectory& PeFile::relocDir() 122 RelocationsDirectory& PeFile::relocDir()
123 { 123 {
124 return m_relocs; 124 return m_relocs;
125 } 125 }
126 126
127 /** 127 /**
128 * @return A reference to the file's COM+ descriptor directory. 128 * @return A reference to the file's COM+ descriptor directory.
129 **/ 129 **/
130 130
131 const ComHeaderDirectory& PeFile::comDir() const 131 const ComHeaderDirectory& PeFile::comDir() const
132 { 132 {
133 return m_comdesc; 133 return m_comdesc;
134 } 134 }
135 135
136 /** 136 /**
137 * @return A reference to the file's COM+ descriptor directory. 137 * @return A reference to the file's COM+ descriptor directory.
138 **/ 138 **/
139 139
140 ComHeaderDirectory & PeFile::comDir() 140 ComHeaderDirectory & PeFile::comDir()
141 { 141 {
142 return m_comdesc; 142 return m_comdesc;
143 } 143 }
144 144
145 145
146 const IatDirectory& PeFile::iatDir() const 146 const IatDirectory& PeFile::iatDir() const
147 { 147 {
148 return m_iat; 148 return m_iat;
149 } 149 }
150 150
151 151
152 IatDirectory& PeFile::iatDir() 152 IatDirectory& PeFile::iatDir()
153 { 153 {
154 return m_iat; 154 return m_iat;
155 } 155 }
156 156
157 157
158 const DebugDirectory& PeFile::debugDir() const 158 const DebugDirectory& PeFile::debugDir() const
159 { 159 {
160 return m_debugdir; 160 return m_debugdir;
161 } 161 }
162 162
163 163
164 DebugDirectory& PeFile::debugDir() 164 DebugDirectory& PeFile::debugDir()
165 { 165 {
166 return m_debugdir; 166 return m_debugdir;
167 } 167 }
168 168
169} 169}