EMA C++ Developers Guide
: 3 OMM Containers and Messages :
3.4 Working with OMM Messages
: 3.4.1 Example: Populating the GenericMsg with an ElementList Payload
3.4.1
Example: Populating the
GenericMsg
with an
ElementList
Payload
The following example illustrates how to populate a
GenericMsg
with a payload consisting of an
ElementList
.
try {
GenericMsg
genMsg;
genMsg.domainType( 200 ).name( "TR.N" ).serviceId( 234 ).payload(
ElementList
().addAscii(
"entry_1"
,
"value_1"
).complete() );
} catch ( const
OmmException
& excp ) {
cout << excp << endl;
}
This site works best with JavaScript enabled