69 return _drivers.insert( DriversMap::value_type( driverId, builder ) ).second;
77 return _drivers.erase( driverId ) != 0;
85 vector<string> driver_ids;
87 DriversMap::const_iterator d =
_drivers.begin();
88 DriversMap::const_iterator end =
_drivers.end();
92 driver_ids.push_back( d->first );
105 string source_str( source );
108 int i = source_str.find(
"terralib>" );
110 DriversMap::const_iterator di;
130 if ( source_str ==
"http://data.gbif.org/ws/rest/occurrence/list" ) {
147 i = source_str.find(
"http://" );
158 if ( tapir_driver->
load() ) {
172 if ( gbif_driver->
load() ) {
186 if ( xml_driver->
load() ) {
static OccurrencesReader * CreateOccurrencesReaderCallback(const char *source, const char *coordSystem)
static OccurrencesReader * CreateOccurrencesReaderCallback(const char *source, const char *coordSystem)
static OccurrencesReader * CreateOccurrencesReaderCallback(const char *source, const char *coordSystem)
bool unregisterDriver(const string &driverId)
vector< string > getRegisteredDrivers()
static Log * instance()
Returns the instance pointer, creating the object on the first call.
static OccurrencesFactory & instance()
bool registerDriver(const string &driverId, CreateOccurrencesReaderCallback builder)
static OccurrencesReader * CreateOccurrencesReaderCallback(const char *source, const char *coordSystem)
static OccurrencesReader * CreateOccurrencesReaderCallback(const char *source, const char *coordSystem)
void debug(const char *format,...)
'Debug' level.
OccurrencesReader * create(const char *source, const char *coordSystem)