model_server/DIS_cm/src/ui_cm_get.cxx
// Perform the CM Get operation on the module.
Perform the CM Get operation on the module.
Perform the CM Get operation on the module .
bool ui_cm_get::OperateOnModule(projModule* mod)
{
	bool status = true;
	dis_message(NULL, MSG_INFORM,
		"Checking out '%s' ...", mod->get_name() );
	symbolPtr sym = mod;
	if (needs_comment_string_) {
		projModule* gotten = projModule::get_module_with_data(sym, comment_string_);
		if (gotten == NULL) status = false;
	} else {
		projModule* gotten = projModule::get_module(sym);
		if (gotten == NULL) status = false;
	}
	if (status)
		dis_message(NULL, MSG_INFORM,
			"%s check out completed.",
			mod->get_name() );
	else
		dis_message(NULL, MSG_INFORM,
			"Problem checking out '%s'.",
			mod->get_name() );
	return (status);
}
bool ui_cm_get :: OperateOnModule ( projModule * mod ) { bool status = true ; dis_message ( NULL , MSG_INFORM , " " , mod -> get_name ( ) ) ; symbolPtr sym = mod ; if ( needs_comment_string_ ) { projModule * gotten = projModule :: get_module_with_data ( sym , comment_string_ ) ; if ( gotten == NULL ) status = false ; } else { projModule * gotten = projModule :: get_module ( sym ) ; if ( gotten == NULL ) status = false ; } if ( status ) dis_message ( NULL , MSG_INFORM , " " , mod -> get_name ( ) ) ; else dis_message ( NULL , MSG_INFORM , " " , mod -> get_name ( ) ) ; return ( status ) ; }
Perform the CM Get operation on the module.
Perform the CM Get operation on the module .