MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
logger.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 logger_H_
10 #define logger_H_
11 
12 #include <lgrCore/lgrCore.h>
14 #include <vlutil/vlSmartPointers.h>
15 #include <list>
16 #include <lgrUtil/absoluteTime.h>
17 
18 namespace MAKLogger
19 {
20 
21  class DtCommand;
22  class DtLgrDynamicLibrary;
23  class DtLgrCommandHandler;
24  class DtLgrCommandType;
25  class DtLgrProtocolRegistration;
26  class DtLgrSimManager;
27  class DtLgrSystemDriver;
28 
29  typedef std::list<DtBoost::shared_ptr<DtLgrDynamicLibrary> > DtLibraryList;
30  typedef DtBoost::shared_ptr<DtLgrCommandHandler> DtLgrCommandHandlerSP;
31 
36  {
37  public:
38 
40 
41  virtual ~DtLogger();
42 
48  virtual void init();
49 
54  virtual void registerSimulationProtocol(DtLgrProtocolRegistration* );
55 
57  virtual const DtLgrProtocolRegistration* simulationProtocol() const;
58 
66  virtual bool tick();
67 
69  virtual DtRelativeTime tickTime() const;
70 
72  virtual void setTickTime(DtRelativeTime time);
73 
80  virtual void submitCommand(const DtCommand& command);
81 
83  virtual DtLgrCommandHandlerSP getCommandHandler(const DtLgrCommandType& type) const;
84 
86  virtual const DtLibraryList& libraries() const;
87 
89  virtual DtLgrSimManager* simManager();
90 
92  DtLgrSystemDriver& driver();
93 
94  protected:
95 
97 
101 
104 
105  protected:
106 
109  };
110 
111 }
112 
113 #endif
114 
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:109
The command type structure.
Definition: lgrCommand.h:29
DtLgrSystemDriver * myDriver
The driver which defines the logger executions.
Definition: logger.h:100
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
Relative Time, an elapsed duration of time, no implied measurement, could be seconds/cycles or ticks ...
Definition: absoluteTime.h:28
DtBoost::shared_ptr< DtLgrCommandHandler > DtLgrCommandHandlerSP
Definition: lgrDriver.h:150
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
DtLgrProtocolRegistration * myRegistration
Definition: logger.h:96
std::list< DtBoost::shared_ptr< DtLgrDynamicLibrary > > DtLibraryList
Definition: lgrSystemDriver.h:36
DtRelativeTime myTickTime
The time between ticks.
Definition: logger.h:103
Implements a protocol independent Simulation manager.
Definition: lgrSimManager.h:40
Contains MAKLogger::DtAbsoluteTime and MAKLogger::DtRelativeTime classes.
static DtRelativeTime theDefaultTickTime
Default tick time.
Definition: logger.h:108
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
A helper class for registering the necessary protocol specific information.
Definition: lgrProtocolRegistration.h:31
DtLogger provides the core system structure and controls the execution model for the underlying objec...
Definition: logger.h:35
DtLgrSystemDrive defines the lowest level driver which controls the logger.
Definition: lgrSystemDriver.h:43
Contains lgrCore library definitions.

Document ID: Generated on Thu Jul 14 15:45:33 EDT 2022 from SVN revision 244827
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)