OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimPdalPluginInit.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: See top level LICENSE.txt file
4 //
5 // Author: David Burken
6 //
7 // Description:
8 //
9 // OSSIM Point Data Abstractin Library(PDAL) plugin initialization code.
10 //
11 //----------------------------------------------------------------------------
12 // $Id
13 
16 #include "ossimPdalReaderFactory.h"
17 //#include "ossimPdalImageHandlerFactory.h"
18 #include <ossim/base/ossimString.h>
21 
22 static void setPdalDescription(ossimString& description)
23 {
24  description = "pdal reader / writer plugin\n\n";
25 }
26 
27 extern "C"
28 {
31  std::vector<ossimString> thePdalObjList;
32 
33  const char* getPdalDescription()
34  {
35  return thePdalDescription.c_str();
36  }
37 
39  {
40  return (int)thePdalObjList.size();
41  }
42 
43  const char* getPdalClassName(int idx)
44  {
45  if(idx < (int)thePdalObjList.size())
46  {
47  return thePdalObjList[idx].c_str();
48  }
49  return (const char*)0;
50  }
51 
52  /* Note symbols need to be exported on windoze... */
54  ossimSharedObjectInfo** info)
55  {
59 
60  *info = &myPdalInfo;
61 
62  /* Register the readers... */
64  registerFactory(ossimPdalReaderFactory::instance());
66 
67  setPdalDescription(thePdalDescription);
68  }
69 
70  /* Note symbols need to be exported on windoze... */
72  {
74  unregisterFactory(ossimPdalReaderFactory::instance());
75  //ossimImageHandlerRegistry::instance()->
76  // unregisterFactory(ossimPdalImageHandlerFactory::instance());
77  }
78 }
OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize()
const char * getPdalDescription()
ossimString thePdalDescription
int getPdalNumberOfClassNames()
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
ossimSharedLibraryGetNumberOfClassNamesPtr getNumberOfClassNames
const char * getPdalClassName(int idx)
static ossimPdalReaderFactory * instance()
ossimSharedLibraryGetDescriptionPtr getDescription
#define OSSIM_PLUGINS_DLL
ossimSharedLibraryGetClassNamesPtr getClassName
static ossimPointCloudHandlerRegistry * instance()
std::vector< ossimString > thePdalObjList
ossimSharedObjectInfo myPdalInfo
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
OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize(ossimSharedObjectInfo **info)