21 static const ossimTrace traceDebug(
"ossimPngReaderFactory:debug");
24 "ossimPngReaderFactory",
44 bool openOverview)
const 49 <<
"ossimPngReaderFactory::open(filename) DEBUG: entered..." 50 <<
"\ntrying ossimPngReader" 56 if(reader->
open(fileName) ==
false)
64 <<
"ossimPngReaderFactory::open(filename) DEBUG: leaving..." 72 const char* prefix)
const 77 <<
"ossimPngReaderFactory::open(kwl, prefix) DEBUG: entered..." 78 <<
"Trying ossimPngReader" 83 if(reader->
loadState(kwl, prefix) ==
false)
91 <<
"ossimPngReaderFactory::open(kwl, prefix) DEBUG: leaving..." 99 std::shared_ptr<ossim::istream>& str,
101 bool openOverview )
const 108 if ( ih->
open( str, connectionString ) )
115 str->seekg(0, std::ios_base::beg);
124 std::istream* str, std::streamoff restartPosition,
bool youOwnIt )
const 129 if ( reader->
open( str, restartPosition, youOwnIt ) )
131 result = reader.
get();
144 if(typeName ==
"ossimPngReader")
152 const char* prefix)
const 154 return this->
open(kwl, prefix);
182 if(testExt ==
"image/png")
Factory for PNG image reader.
virtual bool open()=0
Pure virtual open.
virtual void getSupportedExtensions(ossimImageHandlerFactoryBase::UniqueStringList &extensionList) const
Method to add supported extension to the list, like "png".
void setOpenOverviewFlag(bool flag)
Sets theOpenOverviewFlag.
virtual ~ossimPngReaderFactory()
virtual destructor
virtual bool open(std::shared_ptr< ossim::istream > &str, const std::string &connectionString)
This open takes a stream and stores/captures the shared pointer on success.
Represents serializable keyword/value map.
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 getImageHandlersByMimeType(ImageHandlerList &result, const ossimString &mimeType) const
virtual ossimRefPtr< ossimImageHandler > openOverview(const ossimFilename &file) const
Open overview that takes a file name.
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
Adds ossimPngWriter to the typeList.
virtual ossimObject * createObject(const ossimString &typeName) const
createObject that takes a class name (ossimPngReader)
void push_back(char c)
Equivalent to insert(end(), c).
static ossimString downcase(const ossimString &aString)
void push_back(const T &value)
static ossimPngReaderFactory * instance()
static method to return instance (the only one) of this class.
void operator=(const ossimPngReaderFactory &)
hidden from use copy constructor
std::basic_istream< char > istream
Base class for char input streams.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual ossimImageHandler * open(const ossimFilename &fileName, bool openOverview=true) const
open that takes a file name.
RTTI_DEF1(ossimPngReaderFactory, "ossimPngReaderFactory", ossimImageHandlerFactoryBase)
std::vector< ossimRefPtr< ossimImageHandler > > ImageHandlerList
virtual void getImageHandlersBySuffix(ImageHandlerList &result, const ossimString &ext) const
static ossimPngReaderFactory * theInstance
static instance of this class
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossimPngReaderFactory()
hidden from use default constructor