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