VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
laserDetectorPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
17 #include "vrfobjcore/simObject.h"
18 
19 #include <readerWriter/rwString.h>
20 #include <readerWriter/rwBoolean.h>
21 #include <readerWriter/rwReal.h>
22 #include <readerWriter/rwInt.h>
23 #include "readerWriter/rwVector.h"
24 #include <vrfutil/rwUUID.h>
26 
32 
35 {
36 
37 protected:
40 
41 public:
42  //constructor
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
47  //copy constructor
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = 0);
51 
52  //assignment operator
54  const DtLaserDetectorPSR& orig);
55 
56  //destructor
57  virtual ~DtLaserDetectorPSR() override;
58 
59  //returns a copy of the PSR
61  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
62 
64  virtual DtString type() const override;
65 
68  virtual void setDesignatingEntity(const DtUUID&);
69 
71  virtual DtSimObjectReference designatingEntity() const;
72 
74  virtual void setLasedLastTick(DtBoolean val);
75  virtual DtBoolean lasedLastTick() const;
76 
78  virtual void setWavelength(const DtReal wave);
79  virtual const DtReal wavelength() const;
80 
82  virtual void setPower(const DtReal pow);
83  virtual const DtReal power() const;
84 
86  virtual void setDesignatorCode(const int code);
87  virtual const int designatorCode() const;
88 
90  static DtVrfProcessStateRepository* creator(const DtString& name,
91  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
92 
93 protected:
99 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwReal myWavelength
Definition: laserDetectorPSR.h:96
DtRwSimObjectReference myDesignatingEntity
Definition: laserDetectorPSR.h:94
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwBoolean myLasedLastTick
Definition: laserDetectorPSR.h:95
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
File: laserDetectorPSR.h.
Definition: laserDetectorPSR.h:34
DtRwReal myPower
Definition: laserDetectorPSR.h:97
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
DtRwInt myDesignatorCode
Definition: laserDetectorPSR.h:98
File: rwVector.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)