OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimOverviewBuilderFactory.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: Factory for overview builders.
8 //
9 //----------------------------------------------------------------------------
10 // $Id: ossimOverviewBuilderFactory.cpp 17709 2010-07-08 20:21:14Z dburken $
11 
12 
15 
17 
19 {
20  if ( !theInstance )
21  {
23  }
24  return theInstance;
25 }
26 
28 {
29  theInstance = 0;
30 }
31 
33  const ossimString& typeName) const
34 {
36  if ( result->hasOverviewType(typeName) == false )
37  {
38  result = 0;
39  }
40  if ( result.get() )
41  {
42  result->setOverviewType(typeName);
43  }
44  return result.release();
45 }
46 
48  std::vector<ossimString>& typeList) const
49 {
51  builder->getTypeNameList(typeList);
52 }
53 
55 {
56 }
57 
59  const ossimOverviewBuilderFactory& /* obj */)
60 {
61 }
62 
64  const ossimOverviewBuilderFactory& /* rhs */)
65 {
66 }
void operator=(const ossimOverviewBuilderFactory &rhs)
operator= hidden from use.
static ossimOverviewBuilderFactory * instance()
static instance method.
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
Method to populate a list of supported types for the factory.
virtual ~ossimOverviewBuilderFactory()
virtual destructor
static ossimOverviewBuilderFactory * theInstance
virtual bool hasOverviewType(const ossimString &type) const
Method to check if builder can handle type.
The ossim overview builder factory.
T * release()
Definition: ossimRefPtr.h:93
virtual void getTypeNameList(std::vector< ossimString > &typeList) const =0
Method to populate class supported types.
virtual ossimOverviewBuilderBase * createBuilder(const ossimString &typeName) const
Creates a builder from a string.
virtual bool setOverviewType(const ossimString &type)=0
Sets the overview output type.
ossimOverviewBuilderFactory()
default constructor hidden from use