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