openModeller  Version 1.5.0
SerializedXmlOccurrences Class Reference

#include <SerializedXmlOccurrences.hh>

Inheritance diagram for SerializedXmlOccurrences:
Inheritance graph
Collaboration diagram for SerializedXmlOccurrences:
Collaboration graph

Public Member Functions

 SerializedXmlOccurrences (const char *source, const char *coordSystem)
 
 ~SerializedXmlOccurrences ()
 
bool load ()
 
- Public Member Functions inherited from OccurrencesReader
virtual ~OccurrencesReader ()
 
virtual OccurrencesPtr getPresences (const char *groupId)
 
virtual OccurrencesPtr getAbsences (const char *groupId)
 
void printOccurrences (const std::string &msg="")
 

Static Public Member Functions

static OccurrencesReaderCreateOccurrencesReaderCallback (const char *source, const char *coordSystem)
 

Private Attributes

bool _loaded
 

Additional Inherited Members

- Protected Types inherited from OccurrencesReader
typedef std::vector
< OccurrencesPtr
LstOccurrences
 
- Protected Member Functions inherited from OccurrencesReader
int _addOccurrence (const char *id, const char *groupId, Coord lg, Coord lt, Scalar error, Scalar abundance, int num_attributes, Scalar *attributes)
 
 OccurrencesReader ()
 
- Protected Attributes inherited from OccurrencesReader
LstOccurrences _presences
 
LstOccurrences _absences
 
char * _source
 
char * _coord_system
 

Detailed Description

Declaration of SerializedXmlOccurrences class.

Author
Renato De Giovanni (renato [at] cria . org . br)
Id:
SerializedXmlOccurrences.hh 4276 2008-05-02 18:19:17Z rdg

LICENSE INFORMATION

Copyright(c) 2008 by CRIA - Centro de Referencia em Informacao Ambiental

http://www.cria.org.br

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html Read occurrences data from an XML file containing openModeller serialized occurrences.

Definition at line 39 of file SerializedXmlOccurrences.hh.

Constructor & Destructor Documentation

SerializedXmlOccurrences::SerializedXmlOccurrences ( const char *  source,
const char *  coordSystem 
)

Constructor.

Parameters
sourcePath to file containing openModeller serialized XML.
coordSystemDefault coordinate system in WKT.

Definition at line 46 of file SerializedXmlOccurrences.cpp.

References OccurrencesReader::_coord_system, _loaded, and OccurrencesReader::_source.

Referenced by CreateOccurrencesReaderCallback().

SerializedXmlOccurrences::~SerializedXmlOccurrences ( )

Destructor.

Definition at line 58 of file SerializedXmlOccurrences.cpp.

Member Function Documentation

OccurrencesReader * SerializedXmlOccurrences::CreateOccurrencesReaderCallback ( const char *  source,
const char *  coordSystem 
)
static

Return a new instance of this class.

Definition of SerializedXmlOccurrences class.

Author
Renato De Giovanni (renato [at] cria . org . br)
Id:
SerializedXmlOccurrences.cpp 4297 2008-05-15 19:51:03Z rdg

LICENSE INFORMATION

Copyright(c) 2008 by CRIA - Centro de Referencia em Informacao Ambiental

http://www.cria.org.br

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html

Definition at line 38 of file SerializedXmlOccurrences.cpp.

References SerializedXmlOccurrences().

Referenced by OccurrencesFactory::instance().

Here is the call graph for this function:

bool SerializedXmlOccurrences::load ( )
virtual

Read occurrences from the XML file.

Implements OccurrencesReader.

Definition at line 66 of file SerializedXmlOccurrences.cpp.

References OccurrencesReader::_absences, _loaded, OccurrencesReader::_presences, OccurrencesReader::_source, Log::info(), Log::instance(), and Configuration::readXml().

Here is the call graph for this function:

Member Data Documentation

bool SerializedXmlOccurrences::_loaded
private

Definition at line 66 of file SerializedXmlOccurrences.hh.

Referenced by load(), and SerializedXmlOccurrences().


The documentation for this class was generated from the following files: