gala_clients/DIS_group/src/GROUPswApp.cxx
// Save selected entries in the Groups list.
Save selected entries in the Groups list.
Save selected entries in the Groups list .
vbool GROUPswApp::saveGroups(const symbolArr groups)
{
    Initialize(GROUPswApp::saveGroups);
    symbolPtr groupSym;
    ForEachS(groupSym, groups) {
        groupHdrPtr group = groupHdr::sym_to_groupHdr(groupSym);
        if (group) {
		if (group->is_scratch() )
			group->make_nonscratch();
		else
			group->set_modified();
            db_save(group, NULL);
        } else {
            dis_message(0, MSG_ERROR, "Symbol '%s' isn't a groupHdr!!!\n",
                    groupSym.get_name() );
        }
    }
    return(vTRUE);
}
vbool GROUPswApp :: saveGroups ( const symbolArr groups ) { Initialize ( GROUPswApp :: saveGroups ) ; symbolPtr groupSym ; ForEachS ( groupSym , groups ) { groupHdrPtr group = groupHdr :: sym_to_groupHdr ( groupSym ) ; if ( group ) { if ( group -> is_scratch ( ) ) group -> make_nonscratch ( ) ; else group -> set_modified ( ) ; db_save ( group , NULL ) ; } else { dis_message ( 0 , MSG_ERROR , " \n " , groupSym . get_name ( ) ) ; } } return ( vTRUE ) ; }
Save selected entries in the Groups list.
Save selected entries in the Groups list .
// Save the group.