26 return factoryInstance;
32 static const char MODULE[] =
"ossimH5ProjectionFactory::createProjection(ossimFilename& filename)";
38 << MODULE <<
" DEBUG: testing ossimH5GridModel" << std::endl;
61 if(coarseGrid.
exists() &&(coarseGrid !=
""))
63 kwl.
add(
"grid_file_name",
67 if ( projection->
loadState( kwl ) == false )
83 static const char MODULE[] =
"ossimH5ProjectionFactory::createProjection(ossimString& name)";
88 << MODULE <<
" DEBUG: Entering ...." << std::endl;
92 if ( ( name ==
"ossimH5GridModel" ) || ( name ==
"ossimHdfGridModel" ) )
100 << MODULE <<
" DEBUG: Leaving ...." << std::endl;
110 static const char MODULE[] =
"ossimH5ProjectionFactory::createProjection(ossimKeywordlist& kwl)";
115 << MODULE <<
" DEBUG: Start ...." << std::endl;
123 if ( (type ==
"ossimH5GridModel") || ( type ==
"ossimHdfGridModel" ) )
136 << MODULE <<
" DEBUG: End ...." << std::endl;
157 typeList.push_back(
ossimString(
"ossimH5GridModel"));
static ossimHdf5ProjectionFactory * instance()
ossimFilename & setFile(const ossimString &f)
Represents serializable keyword/value map.
bool addFile(const char *file)
const char * find(const char *key) const
ossimHdf5ProjectionFactory()
static const char * TYPE_KW
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
unsigned int ossim_uint32
ossimFilename fileNoExtension() const
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
virtual ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
Takes a filename.
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
virtual ossimObject * createObject(const ossimString &typeName) const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)