OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
ossimRpfComponentIdLut Class Reference

Lookup table for RPF section/component ID's. More...

#include <ossimRpfComponentIdLut.h>

Inheritance diagram for ossimRpfComponentIdLut:
ossimLookUpTable

Public Member Functions

virtual ~ossimRpfComponentIdLut ()
 destructor More...
 
virtual ossimKeyword getKeyword () const
 
- Public Member Functions inherited from ossimLookUpTable
 ossimLookUpTable (const std::initializer_list< ossimString > &stringInitializer)
 By default if you just give an initializer list with strings then it will assume keys 0..n-1 for each string. More...
 
virtual ~ossimLookUpTable ()
 
virtual ossimString getEntryString (ossim_int32 entry_number) const
 
virtual ossimString getTableIndexString (ossim_uint32 table_index) const
 
virtual ossimString operator[] (ossim_int32 entry_number) const
 
virtual ossimString getEntryString (const ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual ossim_int32 getEntryNumber (const char *entry_string, bool case_insensitive=true) const
 
virtual ossim_int32 getEntryNumber (const ossimKeywordlist &kwl, const char *prefix=0, bool case_insensitive=true) const
 
virtual ossim_uint32 getTableSize () const
 
void dumpValues (std::ostream &out) const
 

Static Public Member Functions

static ossimRpfComponentIdLutinstance ()
 

Private Member Functions

 ossimRpfComponentIdLut ()
 Hidden from use constructor. More...
 

Static Private Attributes

static ossimRpfComponentIdLuttheInstance = 0
 The single instance of this class. More...
 

Additional Inherited Members

- Public Types inherited from ossimLookUpTable
enum  { NOT_FOUND = -1 }
 
- Protected Member Functions inherited from ossimLookUpTable
 ossimLookUpTable (ossim_int32 table_size)
 
 ossimLookUpTable ()
 
- Protected Attributes inherited from ossimLookUpTable
std::vector< ossimKeyValueMaptheTable
 

Detailed Description

Lookup table for RPF section/component ID's.

Used to convert from RPF section/component ID's to strings and vice versa. See MIL-STD-2411-1, section 5.1.1 for detailed information. Defines located in ossimRpfConstants.h. This class is a singleton, only one of them so all callers must go through the instance method like: ossimRpfComponentIdLut::instance()->getEntryString(id);

Definition at line 30 of file ossimRpfComponentIdLut.h.

Constructor & Destructor Documentation

◆ ~ossimRpfComponentIdLut()

ossimRpfComponentIdLut::~ossimRpfComponentIdLut ( )
virtual

destructor

Definition at line 144 of file ossimRpfComponentIdLut.cpp.

References theInstance.

145 {
146  theInstance = 0;
147 }
static ossimRpfComponentIdLut * theInstance
The single instance of this class.

◆ ossimRpfComponentIdLut()

ossimRpfComponentIdLut::ossimRpfComponentIdLut ( )
private

Hidden from use constructor.

Definition at line 31 of file ossimRpfComponentIdLut.cpp.

References ossimLookUpTable::ossimKeyValueMap::init(), OSSIM_RPF_ATTRIBUTE_SECTION_SUBHEADER, OSSIM_RPF_ATTRIBUTE_SUBSECTION, OSSIM_RPF_BOUNDARY_RECT_SECTION_SUBHEADER, OSSIM_RPF_BOUNDARY_RECT_TABLE, OSSIM_RPF_COLOR_CONVERTER_SUBSECTION, OSSIM_RPF_COLOR_GRAYSCALE_SECTION_SUBHEADER, OSSIM_RPF_COLOR_TABLE_INDEX_RECORD, OSSIM_RPF_COLOR_TABLE_INDEX_SECTION_SUBHEADER, OSSIM_RPF_COLORMAP_SUBSECTION, OSSIM_RPF_COMPRESION_LOOKUP_SUBSECTION, OSSIM_RPF_COMPRESION_PARAMETER_SUBSECTION, OSSIM_RPF_COMPRESSION_SECTION_SUBHEADER, OSSIM_RPF_COVERAGE_SECTION_SUBHEADER, OSSIM_RPF_EXPLICIT_AREAL_COVERAGE_TABLE, OSSIM_RPF_FRAME_FILE_INDEX_SECTION_SUBHEADER, OSSIM_RPF_FRAME_FILE_INDEX_SUBSECTION, OSSIM_RPF_HEADER_COMPONENT, OSSIM_RPF_IMAGE_DESCRIPTION_SUBHEADER, OSSIM_RPF_IMAGE_DISPLAY_PARAMETERS_SUBHEADER, OSSIM_RPF_LOCATION_COMPONENT, OSSIM_RPF_MASK_SUBSECTION, OSSIM_RPF_RELATED_IMAGES_SECTION_SUBHEADER, OSSIM_RPF_RELATED_IMAGES_SUBSECTION, OSSIM_RPF_REPLACE_UPDATE_SECTION_SUBHEADER, OSSIM_RPF_REPLACE_UPDATE_TABLE, OSSIM_RPF_SPATIAL_DATA_SUBSECTION, and ossimLookUpTable::theTable.

Referenced by instance().

32 {
33  //---
34  // Complete initialization of data member "theTable".
35  // Note: ID's defined in ossimRpfConstants.h file.
36  //---
37  ossimKeyValueMap entry;
38 
39  entry.init(OSSIM_RPF_HEADER_COMPONENT,
40  "RPF_HEADER_COMPONENT");
41  theTable.push_back(entry);
42 
44  "RPF_LOCATION_COMPONENT");
45  theTable.push_back(entry);
46 
48  "RPF_COVERAGE_SECTION_SUBHEADER");
49  theTable.push_back(entry);
50 
52  "RPF_COMPRESSION_SECTION_SUBHEADER");
53  theTable.push_back(entry);
54 
56  "RPF_COMPRESION_LOOKUP_SUBSECTION");
57  theTable.push_back(entry);
58 
60  "RPF_COMPRESION_PARAMETER_SUBSECTION");
61  theTable.push_back(entry);
62 
64  "RPF_COLOR_GRAYSCALE_SECTION_SUBHEADER");
65  theTable.push_back(entry);
66 
68  "RPF_COLORMAP_SUBSECTION");
69  theTable.push_back(entry);
70 
72  "RPF_IMAGE_DESCRIPTION_SUBHEADER");
73  theTable.push_back(entry);
74 
76  "RPF_IMAGE_DISPLAY_PARAMETERS_SUBHEADER");
77  theTable.push_back(entry);
78 
79  entry.init(OSSIM_RPF_MASK_SUBSECTION,
80  "RPF_MASK_SUBSECTION");
81  theTable.push_back(entry);
82 
84  "RPF_COLOR_CONVERTER_SUBSECTION");
85  theTable.push_back(entry);
86 
88  "RPF_SPATIAL_DATA_SUBSECTION");
89  theTable.push_back(entry);
90 
92  "RPF_ATTRIBUTE_SECTION_SUBHEADER");
93  theTable.push_back(entry);
94 
96  "RPF_ATTRIBUTE_SUBSECTION");
97  theTable.push_back(entry);
98 
100  "RPF_EXPLICIT_AREAL_COVERAGE_TABLE");
101  theTable.push_back(entry);
102 
104  "RPF_RELATED_IMAGES_SECTION_SUBHEADER");
105  theTable.push_back(entry);
106 
108  "RPF_RELATED_IMAGES_SUBSECTION");
109  theTable.push_back(entry);
110 
112  "RPF_REPLACE_UPDATE_SECTION_SUBHEADER");
113  theTable.push_back(entry);
114 
116  "RPF_REPLACE_UPDATE_TABLE");
117  theTable.push_back(entry);
118 
120  "RPF_BOUNDARY_RECT_SECTION_SUBHEADER");
121  theTable.push_back(entry);
122 
124  "RPF_BOUNDARY_RECT_TABLE");
125  theTable.push_back(entry);
126 
128  "RPF_FRAME_FILE_INDEX_SECTION_SUBHEADER");
129  theTable.push_back(entry);
130 
132  "RPF_FRAME_FILE_INDEX_SUBSECTION");
133  theTable.push_back(entry);
134 
136  "RPF_COLOR_TABLE_INDEX_SECTION_SUBHEADER");
137  theTable.push_back(entry);
138 
140  "RPF_COLOR_TABLE_INDEX_RECORD");
141  theTable.push_back(entry);
142 }
std::vector< ossimKeyValueMap > theTable

Member Function Documentation

◆ getKeyword()

ossimKeyword ossimRpfComponentIdLut::getKeyword ( ) const
virtual
Returns
Keyword: ("rpf_component_id", "")

Reimplemented from ossimLookUpTable.

Definition at line 149 of file ossimRpfComponentIdLut.cpp.

150 {
151  return ossimKeyword("rpf_component_id", "");
152 }

◆ instance()

ossimRpfComponentIdLut * ossimRpfComponentIdLut::instance ( )
static
Returns
The static instance of an ossimRpfComponentIdLut object.

Definition at line 22 of file ossimRpfComponentIdLut.cpp.

References ossimRpfComponentIdLut(), and theInstance.

Referenced by ossimRpfComponentLocationRecord::print().

23 {
24  if (!theInstance)
25  {
27  }
28  return theInstance;
29 }
static ossimRpfComponentIdLut * theInstance
The single instance of this class.
ossimRpfComponentIdLut()
Hidden from use constructor.

Member Data Documentation

◆ theInstance

ossimRpfComponentIdLut * ossimRpfComponentIdLut::theInstance = 0
staticprivate

The single instance of this class.

Definition at line 48 of file ossimRpfComponentIdLut.h.

Referenced by instance(), and ~ossimRpfComponentIdLut().


The documentation for this class was generated from the following files: