OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimH5InfoFactory.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: LGPL
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: David Burken
8 //
9 // Copied from Mingjie Su's ossimHdfInfoFactory
10 //
11 // Description: Factory for info objects.
12 //
13 //----------------------------------------------------------------------------
14 // $Id$
15 
16 #include "ossimH5InfoFactory.h"
20 #include <ossim/base/ossimRefPtr.h>
21 #include "ossimH5Info.h"
22 
24 {}
25 
27 {
28  static ossimH5InfoFactory sharedInstance;
29 
30  return &sharedInstance;
31 }
32 
34 {
35  ossimRefPtr<ossimInfoBase> result = 0;
36 
37  // cout << "Calling ossimH5Info ***********************" << endl;
38  result = new ossimH5Info();
39  if ( result->open(file) )
40  {
41  return result.release();
42  }
43 
44  return 0;
45 }
46 
48 {}
49 
51 {}
52 
54  const ossimH5InfoFactory& /* rhs */)
55 {
56  return *this;
57 }
58 
virtual bool open(const ossimFilename &file)
open method.
virtual ~ossimH5InfoFactory()
virtual destructor
Info Base.
Definition: ossimInfoBase.h:32
T * release()
Definition: ossimRefPtr.h:93
TIFF info class.
Definition: ossimH5Info.h:29
virtual ossimInfoBase * create(const ossimFilename &file) const
create method.
static ossimH5InfoFactory * instance()
const ossimH5InfoFactory & operator=(const ossimH5InfoFactory &rhs)
hidden from use operator =
ossimH5InfoFactory()
hidden from use default constructor