c++/EEDB/Chrom.cpp
//init_from_row_map is an internal method used by the MappedQuery template machinery
init_from_row_map is an internal method used by the MappedQuery template machinery
init_from_row_map is an internal method used by the MappedQuery template machinery
void  EEDB::Chrom::init_from_row_map(map<string, dynadata> &row_map) {
  if(row_map["chrom_id"].type != INT) { return ; }
  _primary_db_id   = row_map["chrom_id"].i_int;
  _chrom_length    = row_map["chrom_length"].i_int;
  _chrom_name      = row_map["chrom_name"].i_string;
  _chrom_type      = row_map["chrom_type"].i_string;
  _description     = row_map["description"].i_string;
  if(row_map["ncbi_chrom_name"].type == MQDB::STRING) {
    _ncbi_accession = row_map["ncbi_chrom_name"].i_string;
  }
  if(row_map["ncbi_chrom_acc"].type == MQDB::STRING) {
    _ncbi_accession = row_map["ncbi_chrom_acc"].i_string;
  }
  if(row_map["refseq_chrom_acc"].type == MQDB::STRING) {
    _ncbi_accession = row_map["refseq_chrom_acc"].i_string;
  }
  _assembly_id     = row_map["assembly_id"].i_int;
}
void EEDB :: Chrom :: init_from_row_map ( map < string , dynadata > & row_map ) { if ( row_map [ " " ] . type != INT ) { return ; } _primary_db_id = row_map [ " " ] . i_int ; _chrom_length = row_map [ " " ] . i_int ; _chrom_name = row_map [ " " ] . i_string ; _chrom_type = row_map [ " " ] . i_string ; _description = row_map [ " " ] . i_string ; if ( row_map [ " " ] . type == MQDB :: STRING ) { _ncbi_accession = row_map [ " " ] . i_string ; } if ( row_map [ " " ] . type == MQDB :: STRING ) { _ncbi_accession = row_map [ " " ] . i_string ; } if ( row_map [ " " ] . type == MQDB :: STRING ) { _ncbi_accession = row_map [ " " ] . i_string ; } _assembly_id = row_map [ " " ] . i_int ; }
init_from_row_map is an internal method used by the MappedQuery template machinery
init_from_row_map is an internal method used by the MappedQuery template machinery