c++/EEDB/Collaboration.cpp
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// class level MQDB style fetch methods
//
//////////////////////////////////////////////////////////////////////////////////////////////////
class level MQDB style fetch methods
class level MQDB style fetch methods
void  EEDB::Collaboration::init_from_row_map(map<string, dynadata> &row_map) {
  _primary_db_id   = row_map["collaboration_id"].i_int;
  _group_uuid      = row_map["uuid"].i_string;
  _owner_user_id   = row_map["owner_user_id"].i_int;
  _display_name    = row_map["display_name"].i_string;
  _member_status   = row_map["member_status"].i_string;
  open_to_public(row_map["open_to_public"].i_string);
  if((row_map.find("user_id") != row_map.end()) && (_owner_user_id>0) and (_owner_user_id==row_map["user_id"].i_int)) {
    _member_status = "OWNER";
  }
  if(_member_status.empty()) { _member_status = "not_member"; }
}
void EEDB :: Collaboration :: init_from_row_map ( map < string , dynadata > & row_map ) { _primary_db_id = row_map [ " " ] . i_int ; _group_uuid = row_map [ " " ] . i_string ; _owner_user_id = row_map [ " " ] . i_int ; _display_name = row_map [ " " ] . i_string ; _member_status = row_map [ " " ] . i_string ; open_to_public ( row_map [ " " ] . i_string ) ; if ( ( row_map . find ( " " ) != row_map . end ( ) ) && ( _owner_user_id > 0 ) and ( _owner_user_id == row_map [ " " ] . i_int ) ) { _member_status = " " ; } if ( _member_status . empty ( ) ) { _member_status = " " ; } }
class level MQDB style fetch methods
class level MQDB style fetch methods