MrSID Decode SDK for Raster Reference Manual 9.5.4.4709

- Main Page
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

lti_metadataDumper.h
Go to the documentation of this file.
1 /* $Id$ */
2 /* //////////////////////////////////////////////////////////////////////////
3 // //
4 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
5 // Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
6 // prohibited. Access to and use of this code is permitted only under //
7 // license from LizardTech, Inc. Portions of the code are protected by //
8 // US and foreign patents and other filings. All Rights Reserved. //
9 // //
11 /* PUBLIC */
12
13 #ifndef LTIMETADATADUMPER_H
14 #define LTIMETADATADUMPER_H
15
16 // lt_lib_mrsid_metadata
17 #include "lti_metadataWriter.h"
18
19 LT_BEGIN_NAMESPACE(LizardTech)
20
21 #if defined(LT_COMPILER_MS)
22 #pragma warning(push,4)
23 #endif
24
25 class LTIOStreamInf;
26 class LTIMetadataRecord;
27
28
35 class LTIMetadataDumper: public LTIMetadataWriter
36 {
37 public:
48 LTIMetadataDumper(const LTIMetadataDatabase& database,
49 LTIOStreamInf* stream,
50 bool abbreviated=false);
51
55 ~LTIMetadataDumper();
56
60 LT_STATUS write() const;
61
74 static LT_STATUS writeRecord(const LTIMetadataRecord& record,
75 LTIOStreamInf& stream,
76 bool abbreviated=false);
77
78
79
90 static LT_STATUS writeRecordData(const LTIMetadataRecord& record,
91 LTIOStreamInf& stream,
92 int idx);
93
104 void setWriteInputFilename(bool enable);
105
109 LT_STATUS writeFormatted(bool isShapefile=false) const;
110
114 static LT_STATUS writeFormattedRecord(const LTIMetadataRecord& record,
115 LTIOStreamInf& stream,
116 bool isShapefile=false);
117
118 private:
119 LTIOStreamInf* m_stream;
120 bool m_ownsStream;
121 bool m_writeInputFilename;
122 const bool m_abbreviated;
123
124 // nope
125 LTIMetadataDumper(const LTIMetadataDumper&);
126 LTIMetadataDumper& operator=(const LTIMetadataDumper&);
127 };
128
129
130 LT_END_NAMESPACE(LizardTech)
131
132 #if defined(LT_COMPILER_MS)
133 #pragma warning(pop)
134 #endif
135
136 #endif // LTIMETADATADUMPER_H

LizardTech