MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrCore
lgrInterface.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef lgrInterface_H_
10
#define lgrInterface_H_
11
12
#include <
lgrCore/lgrCore.h
>
13
#include <
lgrUtil/virtualConstructor.h
>
14
#include <
lgrCmds/lgrCommand.h
>
15
#include <
lgrCore/lgrCommandDispatcher.h
>
16
#include <
lgrCmds/lgrCommandQueue.h
>
17
#include <
lgrCmds/lgrCommandFunctor.h
>
18
19
#include <
lgrCore/logger.h
>
20
#include <
lgrCore/lgrDriver.h
>
21
22
#include <map>
23
#include <list>
24
25
namespace
MAKLogger
26
{
27
class
DtLogger;
28
class
DtLgrCommandHandler;
29
33
class
DT_DLL_LGRCORE
DtCommandInterface
34
{
35
public
:
37
DT_VIRTUAL_CTR
(
DtCommandInterface
,(
DtCommandDispatcherSP
))
38
39
40
virtual
~
DtCommandInterface
();
41
47
virtual
bool
update();
48
51
void
disconnectFromDispatcher();
52
54
void
reconnectToDispatcher();
55
56
void
addResponseHandler(
const
DtCommand
& command,
DtResponseFunctorSP
);
57
59
virtual
void
sendCommand(
const
DtCommand
&)
const
;
60
63
bool
executeResponse(
DtResponse
command);
64
65
private
:
67
DtCommandInterface
(
const
DtCommandInterface
& src );
68
DtCommandInterface
& operator=(
const
DtCommandInterface
& src );
69
70
protected
:
71
73
typedef
std::map<DtCommand,DtResponseFunctorSP,std::less<DtCommand> >
DtResponseMap
;
74
DtResponseMap
myResponseMap
;
75
77
DtResponseQueueSP
myResponseQueue
;
78
80
DtCommandDispatcherSP