VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
changeTimeOfDayCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfplan/simCommand.h"
14 #include "vrfplan/vrfplanDefines.h"
15 #include <readerWriter/rwReal.h>
16 #include <readerWriter/rwBoolean.h>
17 
21 {
22 public:
23 
26 
28  DtChangeTimeOfDayCommand(const DtString& writeName,
29  DtReaderWriterRegistry* parentRegistry = NULL);
30 
32  DtChangeTimeOfDayCommand(const DtString & writeName, const DtChangeTimeOfDayCommand& orig,
33  DtReaderWriterRegistry* parentRegistry = NULL);
34 
36  virtual ~DtChangeTimeOfDayCommand();
37 
40 
42  const DtSimCommandMessageType& type() const;
43 
45  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
46  parentRegistry = 0) const;
47 
48  virtual int netRepSize() const;
49  virtual bool setFromNet(const char* contentBuffer,
50  unsigned contentSize);
51  virtual bool setToNet();
52 
54 
55  virtual void setDateAndTimeOfDay(time_t secondsPastMidnight);
56  virtual time_t dateAndTimeOfDay() const;
57  virtual bool changeDateAndTimeOfDay() const;
59 
61 
62  virtual void setUseDayNightIlluminationModel(bool);
64  virtual bool useDayNightIlluminationModel() const;
65  virtual bool changeUseDayNightIlluminationModel() const;
67 
69 
70  virtual void setTimeOfDayAdvanceSpeed(double secondsPastMidnight);
71  virtual double timeOfDayAdvanceSpeed() const;
72  virtual bool changeTimeOfDayAdvanceSpeed() const;
74 
80 
81  virtual void setGeneratedByRemoteSetter(bool value);
82  virtual bool generatedByRemoteSetter() const;
84 
86  virtual DtString stringRep() const;
87 
88  static DtSimCommand* creator();
89 
90 protected:
92  virtual void getSelf(DtlObjPtr args,
94  const DtVariableBindingsList& variableBindings = nullVariableReference());
95 
96 protected:
97 
102 };
103 
DtRwBoolean myUseDayNightIlluminationModel
Definition: changeTimeOfDayCommand.h:101
virtual bool setToNet()
Calls netRep() to create the network buffer.
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command.
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class.
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand).
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtRwReal myToDAdvanceSpeed
Definition: changeTimeOfDayCommand.h:99
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream.
static const DtVariableBindingsList & nullVariableReference()
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtSimCommand * clone() const
Version of clone that preserves the existing name, and assigns a null parent registry.
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual const DtSimCommandMessageType & type() const =0
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtRwBoolean myGeneratedByRemoteSetter
Definition: changeTimeOfDayCommand.h:100
DtRwReal mySecondsPastUTC
Definition: changeTimeOfDayCommand.h:98
A DtSimCommand subclass which specifies a change to the time of day settings in the simulation engine...
Definition: changeTimeOfDayCommand.h:20

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)