networkCallbackManagerAccessory.h
namespace makVrv
{
class DtVrlinkBaseConnection;
class DtVrlinkDriver;
}
namespace makVrf
{
class DtNetworkMessageInterface;
};
{
public:
protected:
protected:
};
networkCallbackManagerAccessory.cxx
#include <vl/commentInteraction.h>
#include <boost/bind/bind.hpp>
static void DtTestInteractionCb(DtCommentInteraction* pdu, void* usr)
{
}
using namespace makVrf;
, myDriver(0)
{
#ifdef DtHLA
#ifdef DtHLA_1516
#ifdef DtHLA_1516_EVOLVED
myName="DtNetworkCallbackManagerHLA1516eAccessory";
#else
myName="DtNetworkCallbackManagerHLA1516Accessory";
#endif
#else
myName="DtNetworkCallbackManagerHLA13Accessory";
#endif
#elif DtDIS
myName="DtNetworkCallbackManagerDISAccessory";
#endif
}
{
{
}
}
{
if(vld)
{
vld->signal_connectionCreated.connect(
, boost::placeholders::_1));
}
}
{
if(vld)
{
}
}
{
if(dd)
{
return true;
}
return false;
}
{
}
{
}
{
(connection);
if(vrlCon)
{
DtCommentInteraction::addCallback(vrlCon->
exerciseConn(), DtTestInteractionCb,
this);
}
}
{
(connection);
if(vrlCon)
{
DtCommentInteraction testPdu;
std::string message =
"Sent from " +
myName;
testPdu.setComment(message.c_str(), message.length() + 1);
#if DtHLA
#endif
}
}
{
(connection);
if(vrlCon)
{
DtCommentInteraction::removeCallback(vrlCon->
exerciseConn(), DtTestInteractionCb,
this);
}
}