23 static const ossimTrace traceDebug(
"ossimSqliteReaderFactory:debug");
26 "ossimSqliteReaderFactory",
46 bool openOverview)
const 51 <<
"ossimSqliteReaderFactory::open(filename) DEBUG: entered..." 52 <<
"\ntrying ossimGpkgReader" 62 if(reader->
open(file) ==
false)
71 <<
"ossimSqliteReaderFactory::open(filename) DEBUG: leaving..." 79 const char* prefix)
const 84 <<
"ossimSqliteReaderFactory::open(kwl, prefix) DEBUG: entered..." 85 <<
"Trying ossimGpkgReader" 90 if(reader->
loadState(kwl, prefix) ==
false)
98 <<
"ossimSqliteReaderFactory::open(kwl, prefix) DEBUG: leaving..." 109 if(typeName ==
"ossimGpkgReader")
117 const char* prefix)
const 119 return this->
open(kwl, prefix);
124 typeList.push_back(
ossimString(
"ossimGpkgReader"));
147 if(testExt ==
"image/gpkg")
virtual bool open()=0
Pure virtual open.
virtual void getImageHandlersBySuffix(ImageHandlerList &result, const ossimString &ext) const
static ossimSqliteReaderFactory * theInstance
static instance of this class
void setOpenOverviewFlag(bool flag)
Sets theOpenOverviewFlag.
virtual void getImageHandlersByMimeType(ImageHandlerList &result, const ossimString &mimeType) const
ossimSqliteReaderFactory()
hidden from use default constructor
Represents serializable keyword/value map.
virtual ~ossimSqliteReaderFactory()
virtual destructor
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual void getSupportedExtensions(ossimImageHandlerFactoryBase::UniqueStringList &extensionList) const
Method to add supported extension to the list, like "sqlite".
virtual ossimRefPtr< ossimImageHandler > openOverview(const ossimFilename &file) const
Open overview that takes a file name.
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
Adds ossimSqliteWriter to the typeList.
static ossimSqliteReaderFactory * instance()
static method to return instance (the only one) of this class.
void push_back(char c)
Equivalent to insert(end(), c).
virtual ossimImageHandler * open(const ossimFilename &file, bool openOverview=true) const
open that takes a file name.
virtual ossimObject * createObject(const ossimString &typeName) const
createObject that takes a class name (ossimSqliteReader)
static ossimString downcase(const ossimString &aString)
void push_back(const T &value)
RTTI_DEF1(ossimSqliteReaderFactory, "ossimSqliteReaderFactory", ossimImageHandlerFactoryBase)
This class defines an abstract Handler which all image handlers(loaders) should derive from...
void operator=(const ossimSqliteReaderFactory &)
hidden from use copy constructor
std::vector< ossimRefPtr< ossimImageHandler > > ImageHandlerList
Factory for SQLITE image reader.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
const std::string & string() const