HexEdit/Template.cpp
ExprStringType CHexEditDoc::get_str(CHexExpr::value_t val, int ii)
{
	if (val.typ == CHexExpr::TYPE_INT)
	{
		std::map<MSXML2::IXMLDOMElementPtr::Interface *, enum_t>::const_iterator pev =
			df_enum_.find((MSXML2::IXMLDOMElementPtr::Interface *)df_elt_[ii].m_pelt);
		if (pev != df_enum_.end())
		{
			enum_t::const_iterator pe = pev->second.find(val.int64);
			if (pe != pev->second.end())
			{
				return ExprStringType(pe->second);
			}
		}
	}

	return val.GetDataString("");
}
// Return the string representation of the value, including enum string for int values (if any)

Return the string representation of the value, including enum string for int values (if any)
Return the string representation of the value including enum string for int values ( if any )
ExprStringType CHexEditDoc::get_str(CHexExpr::value_t val, int ii)
{
	if (val.typ == CHexExpr::TYPE_INT)
	{
		std::map<MSXML2::IXMLDOMElementPtr::Interface *, enum_t>::const_iterator pev =
			df_enum_.find((MSXML2::IXMLDOMElementPtr::Interface *)df_elt_[ii].m_pelt);
		if (pev != df_enum_.end())
		{
			enum_t::const_iterator pe = pev->second.find(val.int64);
			if (pe != pev->second.end())
			{
				return ExprStringType(pe->second);
			}
		}
	}
	return val.GetDataString("");
}
ExprStringType CHexEditDoc :: get_str ( CHexExpr :: value_t val , int ii ) { if ( val . typ == CHexExpr :: TYPE_INT ) { std :: map < MSXML2 :: IXMLDOMElementPtr :: Interface * , enum_t > :: const_iterator pev = df_enum_ . find ( ( MSXML2 :: IXMLDOMElementPtr :: Interface * ) df_elt_ [ ii ] . m_pelt ) ; if ( pev != df_enum_ . end ( ) ) { enum_t :: const_iterator pe = pev -> second . find ( val . int64 ) ; if ( pe != pev -> second . end ( ) ) { return ExprStringType ( pe -> second ) ; } } } return val . GetDataString ( " " ) ; }
Return the string representation of the value, including enum string for int values (if any)
Return the string representation of the value including enum string for int values ( if any )