OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimLookUpTable.h>
Classes | |
class | ossimKeyValueMap |
Public Types | |
enum | { NOT_FOUND = -1 } |
Public Member Functions | |
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 ossimKeyword | getKeyword () const |
virtual ossim_uint32 | getTableSize () const |
void | dumpValues (std::ostream &out) const |
Protected Member Functions | |
ossimLookUpTable (ossim_int32 table_size) | |
ossimLookUpTable () | |
Protected Attributes | |
std::vector< ossimKeyValueMap > | theTable |
Definition at line 32 of file ossimLookUpTable.h.
anonymous enum |
Enumerator | |
---|---|
NOT_FOUND |
Definition at line 36 of file ossimLookUpTable.h.
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.
Definition at line 19 of file ossimLookUpTable.cpp.
|
virtual |
Definition at line 36 of file ossimLookUpTable.cpp.
|
protected |
Definition at line 31 of file ossimLookUpTable.cpp.
|
inlineprotected |
Definition at line 126 of file ossimLookUpTable.h.
void ossimLookUpTable::dumpValues | ( | std::ostream & | out | ) | const |
Definition at line 142 of file ossimLookUpTable.cpp.
References getTableSize(), and theTable.
|
virtual |
Returns the entry number associated with the entry string passed in. Returns NOT_FOUND(-1) if entry string is not in the list. If case_insensitive == true(default), the test is case insensitive; else, the test will be case sensitive.
Reimplemented in ossimUnitTypeLut.
Definition at line 87 of file ossimLookUpTable.cpp.
References ossimString::downcase(), ossimString::empty(), NOT_FOUND, theTable, and ossimString::trim().
Referenced by ossimUnitTypeLut::getEntryNumber(), getEntryNumber(), ossimImageFileWriter::getOutputImageType(), ossimScalarTypeLut::getScalarTypeFromString(), ossimGeneralRasterInfo::initializeFromHdr(), ossimSrtmSupportData::loadOmd(), ossimCastTileSourceFilter::loadState(), ossimNBandLutDataObject::loadState(), ossimCastTileSourceFilter::setOutputScalarType(), ossimBandLutFilter::setOutputScalarType(), and ossimCastTileSourceFilter::setProperty().
|
virtual |
Returns the entry number associated with the lookup table keyword entry in the Keywordlist passed in. Returns NOT_FOUND(-1) if no matching entry. If case_insensitive == true(default), the test is case insensitive; else, the test will be case sensitive.
Reimplemented in ossimUnitTypeLut.
Definition at line 118 of file ossimLookUpTable.cpp.
References ossimKeywordlist::find(), getEntryNumber(), getKeyword(), and NOT_FOUND.
|
virtual |
Definition at line 43 of file ossimLookUpTable.cpp.
References theTable.
Referenced by ossim_hdf5::crossesDateline(), demo1(), ossimHdf5Info::dumpNumericalTypeInfo(), ossim_hdf5::getBilinearProjection(), ossimCastTileSourceFilter::getOutputScalarTypeString(), ossimEquationCombiner::getProperty(), ossimImageData::getScalarTypeAsString(), ossimAdjustableParameterInfo::getUnitAsString(), ossim_hdf5::getValidBoundingRect(), main(), ossimGeoidImage::offsetFromEllipsoid(), operator<<(), operator[](), ossimRpfComponentLocationRecord::print(), ossimCcfHead::print(), ossimH5ImageDataset::print(), ossimHdf5ImageDataset::print(), ossimRectilinearDataObject::print(), ossimMapProjection::print(), ossim_hdf5::printObject(), ossimEquationCombiner::saveState(), ossimHdf5ImageDataset::scanForValidImageRect(), ossimImageFileWriter::setOutputImageType(), ossimStatePlaneProjectionInfo::units(), and ossimImageData::write().
|
virtual |
Returns the entry string associated with lookup table keyword entry in the Keywordlist passed in. Returns empty string if keyword entry is not in the Keywordlist.
Definition at line 77 of file ossimLookUpTable.cpp.
References ossimKeywordlist::find(), and getKeyword().
|
virtual |
Returns keyword for lookups from a Keywordlist.
Reimplemented in ossimGeoTiffDatumLut, ossimGeoTiffCoordTransformsLut, ossimUnitTypeLut, ossimRpfComponentIdLut, ossimScalarTypeLut, ossimImageTypeLut, and ossimInterleaveTypeLut.
Definition at line 137 of file ossimLookUpTable.cpp.
Referenced by getEntryNumber(), and getEntryString().
|
virtual |
table_index | Index into the table Note: This is not the key mapped to the but the index into the table. |
Definition at line 59 of file ossimLookUpTable.cpp.
References theTable.
|
virtual |
Definition at line 132 of file ossimLookUpTable.cpp.
References theTable.
Referenced by dumpValues(), and ossimEquationCombiner::getProperty().
|
virtual |
Returns the entry string associated with the entry number passed in. Returns empty string if entry number is not in the list.
Definition at line 69 of file ossimLookUpTable.cpp.
References getEntryString().
|
protected |
Definition at line 124 of file ossimLookUpTable.h.
Referenced by dumpValues(), getEntryNumber(), getEntryString(), getTableIndexString(), getTableSize(), ossimRpfComponentIdLut::ossimRpfComponentIdLut(), and ossimScalarTypeLut::ossimScalarTypeLut().