src/Generic/patterns/PatternReturn.cpp
/**
 * Returns the value associated with a particular key.
 *
 * @param key The string key to check for.
 * @return The value for that key, otherwise the empty string.
 *
 * @author nward@bbn.com
 * @date 2010.06.28
 **/
Returns the value associated with a particular key.

@param key The string key to check for.
@return The value for that key, otherwise the empty string.


Returns the value associated with a particular key . @param key The string key to check for . @return The value for that key otherwise the empty string .
std::wstring PatternReturn::getValue(const std::wstring & key) const {
	std::map<std::wstring, std::wstring>::const_iterator value_i = _return_values.find(key);
	if (value_i == _return_values.end())
		return L"";
	else
		return value_i->second;
}
std :: wstring PatternReturn :: getValue ( const std :: wstring & key ) const { std :: map < std :: wstring , std :: wstring > :: const_iterator value_i = _return_values . find ( key ) ; if ( value_i == _return_values . end ( ) ) return L" " ; else return value_i -> second ; }
Returns the value associated with a particular key.
Returns the value associated with a particular key .