OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCodecFactoryRegistry.cpp
Go to the documentation of this file.
3 
5 
8 {
9  m_instance = this;
10 }
11 
14 {
15  m_instance = this;
16 }
17 
20 {
21  return *this;
22 }
23 
25 {
26  if(!m_instance)
27  {
30  }
31 
32  return m_instance;
33 }
34 
36 {
37  m_instance = 0;
38 }
39 
40 
42 {
43  return createNativeObjectFromRegistry(type);
44 }
45 
47  const char* prefix)const
48 {
49  return createNativeObjectFromRegistry(kwl, prefix);
50 }
51 
52 void ossimCodecFactoryRegistry::getTypeNameList(std::vector<ossimString>& typeNames)const
53 {
54  getAllTypeNamesFromRegistry(typeNames);
55 }
static ossimCodecFactoryRegistry * instance()
const ossimCodecFactoryRegistry & operator=(const ossimCodecFactoryRegistry &rhs)
hidden from use operator =
static ossimCodecFactoryRegistry * m_instance
Represents serializable keyword/value map.
ossimCodecFactoryRegistry()
hidden from use default constructor
virtual void getTypeNameList(std::vector< ossimString > &typeNames) const
Loop through all factories and get a list of supported types.
ossimCodecBase * createNativeObjectFromRegistry(const ossimString &typeName) const
This is a helper method that calls the createObject and makes sure that the returned object is of the...
void registerFactory(T *factory, bool pushToFrontFlag=false)
Will register a factory to the factory list.
virtual ossimCodecBase * createCodec(const ossimString &type) const
Will loop through all registered factories trying to allocate a codec for the passed in type...
void getAllTypeNamesFromRegistry(std::vector< ossimString > &typeList) const
Will add all object types the factories can allocate.
static ossimCodecFactory * instance()