OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimPointCloudHandlerRegistry.cpp
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM (http://trac.osgeo.org/ossim/)
4 //
5 // License: LGPL -- See LICENSE.txt file in the top level directory for more details.
6 //
7 //**************************************************************************************************
8 // $Id$
9 
13 
15 
16 RTTI_DEF1(ossimPointCloudHandlerRegistry, "ossimPointCloudHandlerRegistry" , ossimObjectFactory);
17 
19 {
20  // TODO Auto-generated constructor stub
21 }
22 
24 {
25  // TODO Auto-generated destructor stub
26 }
27 
29 {
30  if (m_instance)
31  return m_instance;
33  return m_instance;
34 }
35 
37 {
38  ossimPointCloudHandler* result = NULL;
39  std::vector<ossimPointCloudHandlerFactory*>::const_iterator factory;
40 
41  factory = m_factoryList.begin();
42  while((factory != m_factoryList.end()) && !result)
43  {
44  result = (*factory)->open(fileName);
45  ++factory;
46  }
47 
48  return result;
49 }
50 
52  const char* prefix) const
53 {
54  ossimPointCloudHandler* result = NULL;
55  std::vector<ossimPointCloudHandlerFactory*>::const_iterator factory;
56 
57  factory = m_factoryList.begin();
58  while((factory != m_factoryList.end()) && !result)
59  {
60  result = (*factory)->open(kwl, prefix);
61  ++factory;
62  }
63 
64  return result;
65 }
66 
68  std::streamoff /*restartPosition*/,
69  bool /*youOwnIt*/) const
70 {
71  // TODO Auto-generated constructor stub
72  return 0;
73 }
74 
76 {
77  return createObjectFromRegistry(typeName);
78 }
79 
81  const char* prefix) const
82 {
83  return createObjectFromRegistry(kwl, prefix);
84 }
85 
87  const ossimPointCloudHandlerRegistry& /*rhs*/)
88 {
89  return *this;
90 }
91 
92 void ossimPointCloudHandlerRegistry::getTypeNameList(std::vector<ossimString>& typeList) const
93 {
95 }
96 
97 
static ossimPointCloudHandlerRegistry * m_instance
virtual bool open(const ossimFilename &imageFile)=0
Method to open input point cloud dataset.
const ossimPointCloudHandlerRegistry & operator=(const ossimPointCloudHandlerRegistry &rhs)
Represents serializable keyword/value map.
RTTI_DEF1(ossimPointCloudHandlerRegistry, "ossimPointCloudHandlerRegistry", ossimObjectFactory)
virtual ossimPointCloudHandler * open(const ossimFilename &fileName) const
static ossimPointCloudHandlerRegistry * instance()
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
void getAllTypeNamesFromRegistry(std::vector< ossimString > &typeList) const
Will add all object types the factories can allocate.
virtual ossimObject * createObject(const ossimString &typeName) const
Base class for all point-cloud file readers.
ossimObject * createObjectFromRegistry(const ossimString &typeName) const
This is the base object return for all objects in the system.