OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimElevationDatabaseRegistry.cpp
Go to the documentation of this file.
4 
7 {
8  if(!m_instance)
9  {
11 
13  }
14 
15  return m_instance;
16 }
17 
19 {
20  ossimElevationDatabase* result = 0;
21  ossim_uint32 idx = 0;
22  for(;((idx < m_factoryList.size())&&!result); ++idx)
23  {
24  result = m_factoryList[idx]->createDatabase(typeName);
25  }
26 
27  return result;
28 
29 }
31  const char* prefix)const
32 {
33  ossimElevationDatabase* result = 0;
34  ossim_uint32 idx = 0;
35  for(;((idx < m_factoryList.size())&&!result); ++idx)
36  {
37  result = m_factoryList[idx]->createDatabase(kwl, prefix);
38  }
39 
40  return result;
41 }
42 
44 {
45  ossimElevationDatabase* result = 0;
46  ossim_uint32 idx = 0;
47  for(;((idx < m_factoryList.size())&&!result); ++idx)
48  {
49  result = m_factoryList[idx]->open(connectionString);
50  }
51 
52  return result;
53 }
54 
static ossimElevationDatabaseRegistry * instance()
Represents serializable keyword/value map.
static ossimElevationDatabaseFactory * instance()
static ossimElevationDatabaseRegistry * m_instance
unsigned int ossim_uint32
This is the elevation database registry.
void registerFactory(T *factory, bool pushToFrontFlag=false)
Will register a factory to the factory list.
ossimElevationDatabase * open(const ossimString &connectionString)
ossimElevationDatabase * createDatabase(const ossimString &typeName) const