EMA C++ Developers Guide : 3 OMM Containers and Messages : 3.3 Working with OMM Containers : 3.3.1 Example: Populating a FieldList Class
 
3.3.1 Example: Populating a FieldList Class
The following example illustrates how to populate a FieldList class with fluid interfaces.
 
 
try {
FieldList fieldList;
 
fieldList.info( 1, 1 )
.addUInt( 1, 64 )
.addReal( 6, 11, OmmReal::ExponentNeg2Enum )
.addDate( 16, 1999, 11, 7 )
.addTime( 18, 02, 03, 04, 005 )
.complete();
} catch ( const OmmException & excp ) {
cout << excp << endl;
}