OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRegPluginInit.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 "ossimRegTool.h"
13 #include "ossimRegToolFactory.h"
14 
15 extern "C"
16 {
18 
19  const char* getRegDescription()
20  {
21  return "Reg utility plugin\n\n";
22  }
23 
25  {
26  return 1;
27  }
28 
29  const char* getRegClassName(int idx)
30  {
31  if (idx == 0)
32  {
33  return "ossimRegTool";
34  }
35  return (const char*)0;
36  }
37 
38  /* Note symbols need to be exported on windoze... */
40  {
44 
45  *info = &myRegInfo;
46 
47  /* Register the utility... */
49  registerFactory(ossimRegToolFactory::instance());
50  }
51 
52  /* Note symbols need to be exported on windoze... */
54  {
56  unregisterFactory(ossimRegToolFactory::instance());
57  }
58 }
static ossimRegToolFactory * instance()
ossimSharedLibraryGetNumberOfClassNamesPtr getNumberOfClassNames
ossimSharedObjectInfo myRegInfo
static ossimToolRegistry * instance()
const char * getRegDescription()
ossimSharedLibraryGetDescriptionPtr getDescription
#define OSSIM_PLUGINS_DLL
OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize(ossimSharedObjectInfo **info)
ossimSharedLibraryGetClassNamesPtr getClassName
OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize()
int getRegNumberOfClassNames()
const char * getRegClassName(int idx)