MCPcopy Create free account
hub / github.com/Norbyte/ositools / MakeMsgColumn

Function MakeMsgColumn

OsiInterface/DebugMessages.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

MakeMsgTupleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected