c++/EEDB/DataSource.cpp
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// global sources cache, used for XML building of data stream
// webservices need to fill cache, no automatic systems
//
//////////////////////////////////////////////////////////////////////////////////////////////////
global sources cache, used for XML building of data stream
webservices need to fill cache, no automatic systems
global sources cache used for XML building of data stream webservices need to fill cache no automatic systems
void EEDB::DataSource::add_to_sources_cache(EEDB::DataSource* source) {
  map<string, EEDB::DataSource*>::iterator  search_it;
  if(source == NULL) { return; }
  if(!source->is_active()) { return; }
  string fid = source->db_id();
  if(fid.empty()) { return; }
  if(EEDB::DataSource::sources_cache.find(fid) == EEDB::DataSource::sources_cache.end()) { 
    source->retain();
    EEDB::DataSource::sources_cache[fid] = source;
  } 
}
void EEDB :: DataSource :: add_to_sources_cache ( EEDB :: DataSource * source ) { map < string , EEDB :: DataSource * > :: iterator search_it ; if ( source == NULL ) { return ; } if ( ! source -> is_active ( ) ) { return ; } string fid = source -> db_id ( ) ; if ( fid . empty ( ) ) { return ; } if ( EEDB :: DataSource :: sources_cache . find ( fid ) == EEDB :: DataSource :: sources_cache . end ( ) ) { source -> retain ( ) ; EEDB :: DataSource :: sources_cache [ fid ] = source ; } }
global sources cache, used for XML building of data stream
webservices need to fill cache, no automatic systems
global sources cache used for XML building of data stream webservices need to fill cache no automatic systems