openModeller
Version 1.4.0
|
#include <DelimitedTextOccurrences.hh>
Public Member Functions | |
DelimitedTextOccurrences (const char *source, const char *coordSystem) | |
~DelimitedTextOccurrences () | |
bool | load () |
Static Public Member Functions | |
static OccurrencesReader * | CreateOccurrencesReaderCallback (const char *source, const char *coordSystem) |
Private Attributes | |
bool | _loaded |
Declaration of DelimitedTextOccurrences class.
LICENSE INFORMATION
Copyright(c) 2003 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 of one or more group from an ASCII file. The file is read and stored as a linked list of objects from the Occurrences class. Allows navigation through the list.
Format:
Lines beginning with '#' are ignored!
The file must have 5 columns separated by TAB.
Definition at line 58 of file DelimitedTextOccurrences.hh.
DelimitedTextOccurrences::DelimitedTextOccurrences | ( | const char * | source, |
const char * | coordSystem | ||
) |
Constructor.
source | Source of occurrences (such as a file name, Terralib path or TAPIR URL). |
coordSystem | Default coordinate system in WKT. |
Definition at line 67 of file DelimitedTextOccurrences.cpp.
References OccurrencesReader::_coord_system, _loaded, and OccurrencesReader::_source.
Referenced by CreateOccurrencesReaderCallback().
Destructor.
Definition at line 79 of file DelimitedTextOccurrences.cpp.
OccurrencesReader * DelimitedTextOccurrences::CreateOccurrencesReaderCallback | ( | const char * | source, |
const char * | coordSystem | ||
) | [static] |
Return a new instance of this class.
Definition at line 59 of file DelimitedTextOccurrences.cpp.
References DelimitedTextOccurrences().
Referenced by OccurrencesFactory::instance().
bool DelimitedTextOccurrences::load | ( | ) | [virtual] |
Read occurrences from a file.
Implements OccurrencesReader.
Definition at line 87 of file DelimitedTextOccurrences.cpp.
References OccurrencesReader::_addOccurrence(), _loaded, OccurrencesReader::_source, Log::debug(), error, Log::error(), and Log::instance().
bool DelimitedTextOccurrences::_loaded [private] |
Definition at line 85 of file DelimitedTextOccurrences.hh.
Referenced by DelimitedTextOccurrences(), and load().