c++/EEDB/JobQueue/Job.cpp
////////////////////////////////////////////////////
//
// getter/setter methods of data which is stored in database
//
////////////////////////////////////////////////////
getter/setter methods of data which is stored in database
getter / setter methods of data which is stored in database
string    EEDB::JobQueue::Job::created_date_string() { 
  string str;
  if(_created>0) {
    time_t t_update = _created;
    char *ct_value = ctime(&t_update);
    if(ct_value != NULL) {
      int len = strlen(ct_value);
      if(len>0) {
        ct_value[len-1] = '\0';
        str = ct_value;
      }
    }
  }
  return str;
}
string EEDB :: JobQueue :: Job :: created_date_string ( ) { string str ; if ( _created > 0 ) { time_t t_update = _created ; char * ct_value = ctime ( & t_update ) ; if ( ct_value != NULL ) { int len = strlen ( ct_value ) ; if ( len > 0 ) { ct_value [ len - 1 ] = ' \0 ' ; str = ct_value ; } } } return str ; }
getter/setter methods of data which is stored in database
getter / setter methods of data which is stored in database