OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimDemPluginInit.cpp
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM Open Source Geospatial Data Processing Library
4 // See top level LICENSE.txt file for license information
5 //
6 //**************************************************************************************************
7 
10 #include <ossim/base/ossimString.h>
12 #include "ossimDemTool.h"
13 #include "ossimDemToolFactory.h"
14 
15 extern "C"
16 {
18 
19  const char* getDemDescription()
20  {
21  return "Dem utility plugin\n\n";
22  }
23 
25  {
26  return 1;
27  }
28 
29  const char* getDemClassName(int idx)
30  {
31  if (idx == 0)
32  {
33  return "ossimDemTool";
34  }
35  return (const char*)0;
36  }
37 
38  /* Note symbols need to be exported on windoze... */
40  {
44 
45  *info = &myDemInfo;
46 
47  /* Demister the utility... */
49  registerFactory(ossimDemToolFactory::instance());
50  }
51 
52  /* Note symbols need to be exported on windoze... */
54  {
56  unregisterFactory(ossimDemToolFactory::instance());
57  }
58 }
const char * getDemDescription()
ossimSharedLibraryGetNumberOfClassNamesPtr getNumberOfClassNames
ossimSharedObjectInfo myDemInfo
int getDemNumberOfClassNames()
static ossimToolRegistry * instance()
const char * getDemClassName(int idx)
ossimSharedLibraryGetDescriptionPtr getDescription
#define OSSIM_PLUGINS_DLL
ossimSharedLibraryGetClassNamesPtr getClassName
OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize()
OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize(ossimSharedObjectInfo **info)
static ossimDemToolFactory * instance()