OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
ossimGdalInfoFactory Class Reference

Info factory. More...

#include <ossimGdalInfoFactory.h>

Inheritance diagram for ossimGdalInfoFactory:
ossimInfoFactoryInterface

Public Member Functions

virtual ~ossimGdalInfoFactory ()
 virtual destructor More...
 
virtual std::shared_ptr< ossimInfoBasecreate (const ossimFilename &file) const
 create method. More...
 
virtual std::shared_ptr< ossimInfoBasecreate (std::shared_ptr< ossim::istream > &str, const std::string &connectionString) const
 
- Public Member Functions inherited from ossimInfoFactoryInterface
 ossimInfoFactoryInterface ()
 default constructor More...
 
virtual ~ossimInfoFactoryInterface ()
 virtual destructor More...
 

Static Public Member Functions

static ossimGdalInfoFactoryinstance ()
 

Private Member Functions

 ossimGdalInfoFactory ()
 hidden from use default constructor More...
 
 ossimGdalInfoFactory (const ossimGdalInfoFactory &obj)
 hidden from use copy constructor More...
 
const ossimGdalInfoFactoryoperator= (const ossimGdalInfoFactory &rhs)
 hidden from use operator = More...
 

Detailed Description

Info factory.

Definition at line 26 of file ossimGdalInfoFactory.h.

Constructor & Destructor Documentation

◆ ~ossimGdalInfoFactory()

ossimGdalInfoFactory::~ossimGdalInfoFactory ( )
virtual

virtual destructor

Definition at line 23 of file ossimGdalInfoFactory.cpp.

24 {}

◆ ossimGdalInfoFactory() [1/2]

ossimGdalInfoFactory::ossimGdalInfoFactory ( )
private

hidden from use default constructor

Definition at line 63 of file ossimGdalInfoFactory.cpp.

64 {}

◆ ossimGdalInfoFactory() [2/2]

ossimGdalInfoFactory::ossimGdalInfoFactory ( const ossimGdalInfoFactory obj)
private

hidden from use copy constructor

Definition at line 66 of file ossimGdalInfoFactory.cpp.

67 {}

Member Function Documentation

◆ create() [1/2]

std::shared_ptr< ossimInfoBase > ossimGdalInfoFactory::create ( const ossimFilename file) const
virtual

create method.

Parameters
fileSome file you want info for.
Returns
ossimInfoBase* on success 0 on failure. Caller is responsible for memory.

Implements ossimInfoFactoryInterface.

Definition at line 33 of file ossimGdalInfoFactory.cpp.

34 {
35  // Test hdf...
36  std::shared_ptr<ossimInfoBase> result;
37 
38  std::shared_ptr<ossimHdfInfo> hdfInfo = std::make_shared<ossimHdfInfo>();
39  if ( hdfInfo->open(file) )
40  {
41  return hdfInfo;
42  }
43 
44  std::shared_ptr<ossimOgrInfo> ogrInfo = std::make_shared<ossimOgrInfo>();
45  if ( ogrInfo->open(file) )
46  {
47  return ogrInfo;
48  }
49 
50  return result;
51 }

◆ create() [2/2]

std::shared_ptr< ossimInfoBase > ossimGdalInfoFactory::create ( std::shared_ptr< ossim::istream > &  str,
const std::string &  connectionString 
) const
virtual

Implements ossimInfoFactoryInterface.

Definition at line 53 of file ossimGdalInfoFactory.cpp.

55 {
56  std::shared_ptr<ossimInfoBase> result;
57 
58  // generic stream open/adaptors not implemented yet
59 
60  return result;
61 }

◆ instance()

ossimGdalInfoFactory * ossimGdalInfoFactory::instance ( )
static

Definition at line 26 of file ossimGdalInfoFactory.cpp.

Referenced by ossimSharedLibraryFinalize(), and ossimSharedLibraryInitialize().

27 {
28  static ossimGdalInfoFactory sharedInstance;
29 
30  return &sharedInstance;
31 }

◆ operator=()

const ossimGdalInfoFactory & ossimGdalInfoFactory::operator= ( const ossimGdalInfoFactory rhs)
private

hidden from use operator =

Definition at line 69 of file ossimGdalInfoFactory.cpp.

71 {
72  return *this;
73 }

The documentation for this class was generated from the following files: