src/PredFinder/inference/EITbdAdapter.cpp
/**
 * Get appropriate internal name for this event e.g. eru:bombingAttackEvent
 *
 * @param tbd_event_type Name of the event type from the pattern set
 * @param has_agent Whether this event has an agent
 *
 * @author eboschee@bbn.com
 * @date 2010.12.14
 **/
Get appropriate internal name for this event e.g.

@param tbd_event_type Name of the event type from the pattern set
@param has_agent Whether this event has an agent


Get appropriate internal name for this event e . g . @param tbd_event_type Name of the event type from the pattern set @param has_agent Whether this event has an agent
std::wstring EITbdAdapter::getEventName(const std::wstring & tbd_event_type, bool has_agent) {
	throw_if_not_initialized();
	if (has_agent) {
		StringReplacementMap::const_iterator iter = _event_with_agent_name.find(tbd_event_type);
		if (iter == _event_with_agent_name.end()) {
			return L"";
		} else {
			return iter->second;
		}
	} else {
		StringReplacementMap::const_iterator iter = _event_without_agent_name.find(tbd_event_type);
		if (iter == _event_without_agent_name.end()) {
			return L"";
		} else {
			return iter->second;
		}
	}
}
std :: wstring EITbdAdapter :: getEventName ( const std :: wstring & tbd_event_type , bool has_agent ) { throw_if_not_initialized ( ) ; if ( has_agent ) { StringReplacementMap :: const_iterator iter = _event_with_agent_name . find ( tbd_event_type ) ; if ( iter == _event_with_agent_name . end ( ) ) { return L" " ; } else { return iter -> second ; } } else { StringReplacementMap :: const_iterator iter = _event_without_agent_name . find ( tbd_event_type ) ; if ( iter == _event_without_agent_name . end ( ) ) { return L" " ; } else { return iter -> second ; } } }
Get appropriate internal name for this event e.g.
Get appropriate internal name for this event e . g .