OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimOverviewBuilderFactoryBase.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // See top level LICENSE.txt file.
4 //
5 // Author: David Burken
6 //
7 // Description: The base for overview builder factories.
8 //
9 //----------------------------------------------------------------------------
10 // $Id: ossimOverviewBuilderFactoryBase.cpp 19187 2011-03-23 12:21:58Z gpotts $
11 
14 
15 
17 {
18  return createBuilder(typeName);
19 }
20 
22 {
23  ossimObject* result = 0;
24  ossimString typeValue = kwl.find(prefix, "type");
25  if(!typeValue.empty())
26  {
27  result = createObject(typeValue);
28  if(result)
29  {
30  if(!result->loadState(kwl, prefix))
31  {
32  delete result;
33  result = 0;
34  }
35  }
36  }
37 
38  return result;
39 }
40 
41 
43 {
44 }
45 
47 {
48 }
virtual ossimOverviewBuilderBase * createBuilder(const ossimString &typeName) const =0
Creates a builder from a string.
Represents serializable keyword/value map.
const char * find(const char *key) const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
virtual ~ossimOverviewBuilderFactoryBase()
virtual destructor
bool empty() const
Definition: ossimString.h:411
virtual ossimObject * createObject(const ossimString &typeName) const
ossimOverviewBuilderFactoryBase()
default constructor hidden from use