| 15 | } |
| 16 | |
| 17 | void MakeMsgColumn(MsgTypedValue & msgTv, TypedValue const & tv) |
| 18 | { |
| 19 | msgTv.set_type_id((uint16_t)tv.TypeId); |
| 20 | auto const & val = tv.Value; |
| 21 | |
| 22 | switch ((ValueType)tv.TypeId) { |
| 23 | case ValueType::None: break; |
| 24 | case ValueType::Undefined: *msgTv.mutable_stringval() = "(Undefined)"; break; |
| 25 | case ValueType::Integer: msgTv.set_intval(val.Int32); break; |
| 26 | case ValueType::Integer64: msgTv.set_intval(val.Int64); break; |
| 27 | case ValueType::Real: msgTv.set_floatval(val.Float); break; |
| 28 | default: *msgTv.mutable_stringval() = tv.GetString(); break; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | void MakeMsgColumn(MsgTypedValue & msgTv, OsiArgumentValue const & arg) |
| 33 | { |
no test coverage detected