VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

DtExampleEventSignaler.h

/******************************************************************************
** Copyright (c) 2012 MAK Technologies, Inc.
** All rights reserved.
******************************************************************************/
/******************************************************************************
** $RCSfile: DtExampleEventSignaler.h,v $ $Revision: 1.4 $ $State: Exp $
******************************************************************************/
//\file DtExampleEventSignaler.h
//\brief Contains DtExampleEventSignaler class.
//An event signaler is a class that is used to signal boost style signals from
//the gui thread to the networking thread
#pragma once
namespace makVrv
{
class DtDe;
class DtSharedSettingsManager;
}
{
public:
//Get an instance of the simulation settings automatically from the
//settings manager. this will return a different signaler depending
//on what thread this function is called from.
//Get an instance of the simulation settings from the event queue
//interface. This will return the same signaler independent of the thread.
//Find an instance of the signaler, for an interface, if one does not
//exist it will not be created.
//\retval NULL if the instance does not exist.
//DTOR
//@name Signals
//\brief Signal to send a pdu from the network thread
protected:
private:
};

DtExampleEventSignaler.cxx

/******************************************************************************
** Copyright (c) 2012 MAK Technologies, Inc.
** All rights reserved.
******************************************************************************/
/******************************************************************************
** $RCSfile: DtExampleEventSignaler.cxx,v $ $Revision: 1.10 $ $State: Exp $
******************************************************************************/
//\file DtExampleEventSignaler.cxx
//\brief Contains DtExampleEventSignaler class.
#include <vlutil/vlExceptions.h>
using namespace makVrv;
{
dynamic_cast<DtExampleEventSignaler*>(
eqi.findInstance("DtExampleEventSignaler"));
if(!sig)
{
sig = new DtExampleEventSignaler(eqi);
eqi.registerInstance("DtExampleEventSignaler",sig);
}
return *sig;
}
{
if(eqi)
{
}
else
{
DtTHROW_NEW(DtCorruptedState, "Unable to access Event Queue from manager for DtExampleEventSignaler.");
}
}
{
return dynamic_cast<DtExampleEventSignaler*>(
eqi->findInstance("DtExampleEventSignaler"));
}
{
}
, signal_sendPdu(&DtExampleEventSignaler::signal_sendPdu,eqi)
{
}

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)