OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimFgdcFileWriter.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // Copyright (c) 2005, David Burken, all rights reserved.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: David Burken
9 //
10 // Description: Class to write out meta data in a Federal Geographic Data
11 // Committe (FGDC) format.
12 //
13 //----------------------------------------------------------------------------
14 // $Id: ossimFgdcFileWriter.h 15766 2009-10-20 12:37:09Z gpotts $
15 #ifndef ossimFgdcFileWriter_HEADER
16 #define ossimFgdcFileWriter_HEADER
17 
21 
27 {
28 public:
29 
32 
33 
51  virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0);
52 
62  virtual void getMetadatatypeList(
63  std::vector<ossimString>& metadatatypeList) const;
64 
72  virtual bool hasMetadataType(const ossimString& metadataType)const;
73 
74 
76  ossim_uint32 getIndentionLevel() const;
77 
83  void setIndentionLevel(ossim_uint32 level);
84 
88  ossimString getTabString() const;
89 
95  void setTabString(const ossimString& tabString);
96 
100  void setTitle(const ossimString& pubDate);
101 
102  void setTemplate(const ossimFilename& xmlTemplateFile);
103 
104  ossimString find(const ossimString& xpath) const;
105 
106  bool writeTemplate(const ossimFilename& file) const;
107 
108 protected:
110  virtual ~ossimFgdcFileWriter();
111 
117  virtual bool writeFile();
118 
119 private:
120 
131  void openTag(std::ostream& os,
132  const ossimString& tag,
133  bool newLine) const;
134 
145  void closeTag(std::ostream& os,
146  const ossimString& tag,
147  bool decrementLevel) const;
148 
153 
154 TYPE_DATA
155 };
156 
157 #endif /* End of "#ifndef ossimFgdcFileWriter_HEADER" */
ossimXmlDocument theTemplate
virtual bool writeFile()=0
Write out the file.
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
virtual void getMetadatatypeList(std::vector< ossimString > &metadatatypeList) const =0
void getMetadatatypeList(std::vector<ossimString>& metadatatypeList)const
ossim_uint32 theIndentionLevel
Class to write out meta data in a Federal Geographic Data Committe (FGDC) format. ...
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Load state method:
ossimMetadataFileWriter
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
ossimFilename theSourceImageFilename
virtual bool hasMetadataType(const ossimString &metadataType) const =0
bool hasMetadataType(const ossimString& metadataType) const
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23