예제 #1
0
// ////////////////////////////////////////////////////////////////////////////
//	Update XML byte string
void UpdateRvFieldXml(TibrvMsg &msg, const char *field_name, const char *value,
	tibrv_u16 field_id)
{
	TibrvStatus rv_status;

	if ((rv_status = msg.updateXml(field_name, value,
		static_cast<unsigned int>(strlen(value)), field_id)) != TIBRV_OK)
		ThrowIfUpdateRvFieldError(rv_status, field_name, field_id);
}
예제 #2
0
// ////////////////////////////////////////////////////////////////////////////
//	Update XML byte string
void UpdateRvFieldXml(TibrvMsg &msg, const char *field_name,
	const std::string &value, tibrv_u16 field_id)
{
	TibrvStatus rv_status;

	if ((rv_status = msg.updateXml(field_name, value.c_str(),
		static_cast<unsigned int>(value.size()), field_id)) != TIBRV_OK)
		ThrowIfUpdateRvFieldError(rv_status, field_name, field_id);
}
예제 #3
0
// ////////////////////////////////////////////////////////////////////////////
//	Update XML byte string
void UpdateRvFieldXml(TibrvMsg &msg, const char *field_name, unsigned int length,
	const void *value, tibrv_u16 field_id)
{
	TibrvStatus rv_status;

	if ((rv_status = msg.updateXml(field_name, value, length, field_id)) !=
		TIBRV_OK)
		ThrowIfUpdateRvFieldError(rv_status, field_name, field_id);
}