If users want to create and send arbitrary data, this example demonstrates how to use data interactions to encode and decode your information.
#include <iostream>
{
std::cout << "SetData Interaction from "
{
}
for (
int field = 1; field <= inter->
numVarFields(); field++ )
{
}
}
int main( int argc, char* argv[] )
{
try
{
#if DtDIS
appInit.setUseAsynchIO( true );
appInit.setDisVersionToSend( 7 );
#else
appInit.setExecName( "MAK-RPR-2.0" );
appInit.setRprFomVersion( 2.0 );
appInit.setRprFomRevision( 1 );
#endif
appInit.parseCmdLine();
while (simTime <= 60.0)
{
simTime += dt;
}
}
return 0;
}