/* $Id$

(c) Copyright, Real-Time Innovations, $Date: 2008/03/18 15:23:22 $.
All rights reserved.

No duplications, whole or partial, manual or electronic, may be made
without express written permission.  Any such copies, or
revisions thereof, must display this notice unaltered.
This code contains trade secrets of Real-Time Innovations, Inc.

modification history
--------------------
1.0a,08may08,ch  Added keyed type support
1.0a,15apr08,fcs Added entity_id field
1.0a,18mar08,hhw Created.
===================================================================== */

/*uncomment this to use keyed data*/
/* #define PERFTEST_KEYED_TYPE */

/*uncomment this to use keyed data for ndds 4.3 */
/* #define PERFTEST_KEYED_TYPE_DDS43 */

#ifdef PERFTEST_KEYED_TYPE_DDS43
const long MAX_BINDATA_SIZE = 1600;
#else
const long MAX_BINDATA_SIZE = 63000;
#endif

const long KEY_SIZE = 4;

struct TestData_t {

#if defined(PERFTEST_KEYED_TYPE) || defined(PERFTEST_KEYED_TYPE_DDS43)
    octet key[KEY_SIZE]; //@key
#else
    octet key[KEY_SIZE];
#endif

    long entity_id;
    unsigned long seq_num;
    long timestamp_sec;
    unsigned long timestamp_usec;
    long latency_ping;
    sequence<octet, MAX_BINDATA_SIZE> bin_data;
};



