c++/EEDB/TrackRequest.cpp
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// class level MQDB style fetch methods
//
//////////////////////////////////////////////////////////////////////////////////////////////////
class level MQDB style fetch methods
class level MQDB style fetch methods
void  EEDB::TrackRequest::init_from_row_map(map<string, dynadata> &row_map) {
  _primary_db_id      = row_map["track_request_id"].i_int;
  _track_cache_id     = row_map["track_cache_id"].i_int;
  _user_id            = row_map["user_id"].i_int;
  _hashkey            = row_map["hash_key"].i_string;
  _track_name         = row_map["track_name"].i_string;
  _view_uuid          = row_map["view_uuid"].i_string;
  _assembly_name      = row_map["assembly"].i_string;
  _chrom_name         = row_map["chrom"].i_string;
  _chrom_start        = row_map["start"].i_int;
  _chrom_end          = row_map["end"].i_int;
  _num_segs           = row_map["num_segs"].i_int;
  _unbuilt            = row_map["unbuilt"].i_int;
  if(row_map["send_email"].i_string == string("y"))  { _send_email=true; } else { _send_email=false; }
  if(row_map["request_time"].type == MQDB::STRING) {
    string date_string = row_map["request_time"].i_string;
    _request_time = MQDB::seconds_from_epoch(date_string);
  }
  if(row_map["request_time"].type == MQDB::TIMESTAMP) {
    _request_time = row_map["request_time"].i_timestamp;
  }
}
void EEDB :: TrackRequest :: init_from_row_map ( map < string , dynadata > & row_map ) { _primary_db_id = row_map [ " " ] . i_int ; _track_cache_id = row_map [ " " ] . i_int ; _user_id = row_map [ " " ] . i_int ; _hashkey = row_map [ " " ] . i_string ; _track_name = row_map [ " " ] . i_string ; _view_uuid = row_map [ " " ] . i_string ; _assembly_name = row_map [ " " ] . i_string ; _chrom_name = row_map [ " " ] . i_string ; _chrom_start = row_map [ " " ] . i_int ; _chrom_end = row_map [ " " ] . i_int ; _num_segs = row_map [ " " ] . i_int ; _unbuilt = row_map [ " " ] . i_int ; if ( row_map [ " " ] . i_string == string ( " " ) ) { _send_email = true ; } else { _send_email = false ; } if ( row_map [ " " ] . type == MQDB :: STRING ) { string date_string = row_map [ " " ] . i_string ; _request_time = MQDB :: seconds_from_epoch ( date_string ) ; } if ( row_map [ " " ] . type == MQDB :: TIMESTAMP ) { _request_time = row_map [ " " ] . i_timestamp ; } }
class level MQDB style fetch methods
class level MQDB style fetch methods