OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGdalOverviewBuilderFactory.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: .
8 //
9 //----------------------------------------------------------------------------
10 // $Id: ossimGdalOverviewBuilderFactory.cpp 16273 2010-01-06 00:42:09Z gpotts $
11 
14 
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) == true )
37  {
38  // Capture the type. (This builder has more than one.)
39  result->setOverviewType(typeName);
40  }
41  else
42  {
43  result = 0;
44  }
45 
46  return result.release();
47 }
48 
50  std::vector<ossimString>& typeList) const
51 {
53  builder->getTypeNameList(typeList);
54 }
55 
57 {
58 }
59 
61  const ossimGdalOverviewBuilderFactory& /* obj */)
62 {
63 }
64 
66  const ossimGdalOverviewBuilderFactory& /* rhs */)
67 {
68 }
The ossim overview builder factory.
ossimGdalOverviewBuilder Class to build overviews from the GDAL library.
void operator=(const ossimGdalOverviewBuilderFactory &rhs)
operator= hidden from use.
ossimGdalOverviewBuilderFactory()
default constructor hidden from use
virtual ~ossimGdalOverviewBuilderFactory()
virtual destructor
virtual bool hasOverviewType(const ossimString &type) const
Method to check if builder can handle type.
static ossimGdalOverviewBuilderFactory * instance()
static instance method.
T * release()
Definition: ossimRefPtr.h:93
virtual void getTypeNameList(std::vector< ossimString > &typeList) const =0
Method to populate class supported types.
virtual bool setOverviewType(const ossimString &type)=0
Sets the overview output type.
virtual ossimOverviewBuilderBase * createBuilder(const ossimString &typeName) const
Creates a builder from a string.
static ossimGdalOverviewBuilderFactory * theInstance
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
Method to populate a list of supported types for the factory.