MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
threadedLogger.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <lgrCore/lgrCore.h>
12 
13 #include <lgrUtil/absoluteTime.h>
14 #include <lgrCore/logger.h>
16 #include <vlutil/vlRunnable.h>
17 
18 namespace MAKLogger
19 {
20 
26  {
27  public:
28 
31 
32 
33  virtual ~DtThreadedLogger();
34 
36  virtual void run();
37 
39  virtual void stop();
40 
42  virtual bool isRunning() const;
43 
44  protected:
45 
47  virtual void setRunning(bool flag);
48 
51  volatile bool myRunningFlag;
52 
53  };
54 
56  typedef DtBoost::shared_ptr<DtThreadedLogger> DtThreadedLoggerSP;
57 
58 }
59 
60 
DtBoost::shared_ptr< DtThreadedLogger > DtThreadedLoggerSP
Typedef for Shared Pointer to Threaded Logger.
Definition: lgrApplication.h:29
Provides an instance of DtLogger which can be run from a thread.
Definition: threadedLogger.h:25
#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
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
volatile bool myRunningFlag
Running flag is used to stop the logger when stop() has been called.
Definition: threadedLogger.h:51
Contains MAKLogger::DtAbsoluteTime and MAKLogger::DtRelativeTime classes.
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
Contains MAKLogger::DtLogger class.
DtLogger provides the core system structure and controls the execution model for the underlying objec...
Definition: logger.h:35
Contains lgrCore library definitions.

Document ID: Generated on Mon Mar 22 15:30:17 EDT 2021 from SVN revision 226440
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)