openModeller
Version 1.5.0
|
#include <SerializedXmlOccurrences.hh>
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 OccurrencesReader * | CreateOccurrencesReaderCallback (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 |
Declaration of SerializedXmlOccurrences class.
LICENSE INFORMATION
Copyright(c) 2008 by CRIA - Centro de Referencia em Informacao Ambiental
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.
SerializedXmlOccurrences::SerializedXmlOccurrences | ( | const char * | source, |
const char * | coordSystem | ||
) |
Constructor.
source | Path to file containing openModeller serialized XML. |
coordSystem | Default 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.
|
static |
Return a new instance of this class.
Definition of SerializedXmlOccurrences class.
LICENSE INFORMATION
Copyright(c) 2008 by CRIA - Centro de Referencia em Informacao Ambiental
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().
|
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().
|
private |
Definition at line 66 of file SerializedXmlOccurrences.hh.
Referenced by load(), and SerializedXmlOccurrences().