OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNitf20Writer.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: MIT
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: Garrett Potts
8 //
9 //*******************************************************************
10 // $Id: ossimNitfWriter.h 9256 2006-07-14 15:28:19Z dburken $
11 #ifndef ossimNitf20Writer_HEADER
12 #define ossimNitf20Writer_HEADER
13 
14 #include <iosfwd>
20 #include <ossim/base/ossimRefPtr.h>
23 
24 class ossimProjection;
25 
27 {
28 public:
29  ossimNitf20Writer(const ossimFilename& filename=ossimFilename(""),
30  ossimImageSource* inputSource = (ossimImageSource*)NULL);
31  virtual ~ossimNitf20Writer();
32  virtual bool isOpen()const;
33  virtual bool open();
34  virtual void close();
35 
47  virtual void getImageTypeList(std::vector<ossimString>& imageTypeList)const;
48 
49  virtual void setProperty(ossimRefPtr<ossimProperty> property);
51  const ossimString& name)const;
52 
60  virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
61 
63 
74  virtual bool saveState(ossimKeywordlist& kwl, const char* prefix=0) const;
75 
86  virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix=0);
87 
88 protected:
89 
93  virtual bool writeFile();
94 
100  virtual bool writeBlockBandSeparate();
101 
106  virtual bool writeBlockBandSequential();
107 
108  void addTags();
109 
111 
114 
117 
123 
131 
132 TYPE_DATA
133 };
134 
135 #endif /* #ifndef ossimNitfWriter_HEADER */
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Set the properties.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
virtual void close()=0
Represents serializable keyword/value map.
bool theEnableRpcbTagFlag
If true user wants to set RPC00B tag.
virtual bool writeFile()=0
Write out the file.
bool theCopyFieldsFlag
If true this will enable searching the input connnection for another NITF handler and bring the field...
virtual void getImageTypeList(std::vector< ossimString > &imageTypeList) const =0
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
ossimRefPtr< ossimNitfFileHeaderV2_0 > theFileHeader
#define TYPE_DATA
Definition: ossimRtti.h:339
OSSIM nitf writer base class to hold methods common to all nitf writers.
bool theEnableBlockaTagFlag
If true user wants to set BLOCKA tag.
virtual bool isOpen() const =0
#define OSSIM_DLL
virtual bool open()=0
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Initializes the state of the writer from kwl with prefix then calls base class ossimImageFileWriter::...
virtual void addRegisteredTag(ossimRefPtr< ossimNitfRegisteredTag > registeredTag)
std::ofstream * theOutputStream
std::basic_ofstream< char > ofstream
Class for char output file streams.
Definition: ossimIosFwd.h:47
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Gets a property.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Saves the state of the writer to kwl with prefix then calls base class ossimImageFileWriter::saveStat...
ossimRefPtr< ossimNitfImageHeaderV2_0 > theImageHeader