openModeller
Version 1.4.0
|
#include <SerializedXmlOccurrences.hh>
Public Member Functions | |
SerializedXmlOccurrences (const char *source, const char *coordSystem) | |
~SerializedXmlOccurrences () | |
bool | load () |
Static Public Member Functions | |
static OccurrencesReader * | CreateOccurrencesReaderCallback (const char *source, const char *coordSystem) |
Private Attributes | |
bool | _loaded |
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().
Destructor.
Definition at line 58 of file SerializedXmlOccurrences.cpp.
OccurrencesReader * SerializedXmlOccurrences::CreateOccurrencesReaderCallback | ( | const char * | source, |
const char * | coordSystem | ||
) | [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().
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().
bool SerializedXmlOccurrences::_loaded [private] |
Definition at line 66 of file SerializedXmlOccurrences.hh.
Referenced by load(), and SerializedXmlOccurrences().