OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Functions | Variables
ossimHdf5PluginInit.cpp File Reference
#include <ossim/plugin/ossimSharedObjectBridge.h>
#include <ossim/imaging/ossimImageHandlerRegistry.h>
#include <ossim/imaging/ossimImageWriterFactoryRegistry.h>
#include <ossim/imaging/ossimOverviewBuilderFactoryRegistry.h>
#include <ossim/projection/ossimProjectionFactoryRegistry.h>
#include <ossim/support_data/ossimInfoFactoryRegistry.h>
#include <ossim/plugin/ossimPluginConstants.h>
#include "ossimHdf5PluginHandlerFactory.h"
#include "ossimViirsHandler.h"

Go to the source code of this file.

Functions

const char * getDescription ()
 
int getNumberOfClassNames ()
 
const char * getClassName (int idx)
 
OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize (ossimSharedObjectInfo **info)
 
OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize ()
 

Variables

ossimSharedObjectInfo myInfo
 
ossimString theDescription
 
std::vector< ossimStringtheObjList
 

Function Documentation

◆ getClassName()

const char* getClassName ( int  idx)

Definition at line 59 of file ossimHdf5PluginInit.cpp.

References theObjList.

Referenced by ossimSharedLibraryInitialize().

60  {
61  if(idx < (int)theObjList.size())
62  {
63  return theObjList[0].c_str();
64  }
65  return (const char*)0;
66  }
std::vector< ossimString > theObjList

◆ getDescription()

const char* getDescription ( )

Definition at line 49 of file ossimHdf5PluginInit.cpp.

References ossimString::c_str(), and theDescription.

Referenced by ossimSharedLibraryInitialize().

50  {
51  return theDescription.c_str();
52  }
ossimString theDescription
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396

◆ getNumberOfClassNames()

int getNumberOfClassNames ( )

Definition at line 54 of file ossimHdf5PluginInit.cpp.

References theObjList.

Referenced by ossimSharedLibraryInitialize().

55  {
56  return (int)theObjList.size();
57  }
std::vector< ossimString > theObjList

◆ ossimSharedLibraryFinalize()

OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize ( )

Definition at line 90 of file ossimHdf5PluginInit.cpp.

References ossimHdf5PluginHandlerFactory::instance(), and ossimImageHandlerRegistry::instance().

91  {
93  unregisterFactory(ossimHdf5PluginHandlerFactory::instance());
94 
95 // ossimProjectionFactoryRegistry::instance()->
96 // unregisterFactory(ossimHdf5ProjectionFactory::instance());
97  }
static ossimHdf5PluginHandlerFactory * instance()
static method to return instance (the only one) of this class.
static ossimImageHandlerRegistry * instance()

◆ ossimSharedLibraryInitialize()

OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize ( ossimSharedObjectInfo **  info)

Definition at line 69 of file ossimHdf5PluginInit.cpp.

References ossimSharedObjectInfo::getClassName, getClassName(), ossimSharedObjectInfo::getDescription, getDescription(), ossimSharedObjectInfo::getNumberOfClassNames, getNumberOfClassNames(), ossimHdf5PluginHandlerFactory::instance(), ossimImageHandlerRegistry::instance(), and myInfo.

70  {
74 
75  *info = &myInfo;
76 
77 
78  /* Register the readers... */
80  registerFactory(ossimHdf5PluginHandlerFactory::instance());
81 
82  /* Register hdf projection factory... */
83 // ossimProjectionFactoryRegistry::instance()->
84 // registerFactoryToFront(ossimHdf5ProjectionFactory::instance());
85 
86  setDescription(theDescription);
87  }
static ossimHdf5PluginHandlerFactory * instance()
static method to return instance (the only one) of this class.
ossimString theDescription
ossimSharedLibraryGetNumberOfClassNamesPtr getNumberOfClassNames
const char * getClassName(int idx)
const char * getDescription()
ossimSharedObjectInfo myInfo
ossimSharedLibraryGetDescriptionPtr getDescription
ossimSharedLibraryGetClassNamesPtr getClassName
static ossimImageHandlerRegistry * instance()
int getNumberOfClassNames()

Variable Documentation

◆ myInfo

Definition at line 45 of file ossimHdf5PluginInit.cpp.

Referenced by ossimSharedLibraryInitialize().

◆ theDescription

ossimString theDescription

Definition at line 46 of file ossimHdf5PluginInit.cpp.

Referenced by getDescription().

◆ theObjList

std::vector<ossimString> theObjList

Definition at line 47 of file ossimHdf5PluginInit.cpp.

Referenced by getClassName(), and getNumberOfClassNames().