VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setEmitterRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 
18 #include <vlutil/vlNetTypes.h>
19 
21 #include <readerWriter/rwInt.h>
22 #include <readerWriter/rwBoolean.h>
23 #include <vlpi/disEnums.h>
24 
25 
26 
29 {
30  DtNetU8 myEmitterId;
31  DtNetBoolean myOn;
32 };
33 
40 {
41 
42 public:
43 
46 
49  DtSetEmitterRequest(const DtString & writeName,
50  DtReaderWriterRegistry * parentRegistry = 0);
51 
53  DtSetEmitterRequest(const DtString & writeName, const DtSetEmitterRequest &
54  orig, DtReaderWriterRegistry * parentRegistry = 0);
55 
58 
59  virtual ~DtSetEmitterRequest();
60 
62  virtual const DtSetMessageType& type() const;
63 
64  virtual void setEmitterId(DtU8 id);
65  virtual DtU8 emitterId() const;
66 
67  virtual void setOn(bool onOff);
68  virtual bool on() const;
69 
71  virtual DtSetDataRequest * clone(const DtString & name,
72  DtReaderWriterRegistry * parentRegistry = 0) const;
73 
75  virtual DtString stringRep() const;
76 
78  virtual int netRepSize() const;
79 
81  virtual bool setFromNet(const char* contentBuffer,
82  unsigned contentSize);
83 
86  virtual bool setToNet();
87 
88  static DtSetDataRequest * creator();
89 
90 protected:
93 };
DtSetEmitterRequest is used to turn on and off DtEmitterComponents installed on entities. Since more than one emitter component can be on a single entity, the emitter ID must be included in the message. This value should match the EmitterID being published with this emitter.
Definition: setEmitterRequest.h:39
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtNetU8 myEmitterId
Definition: setEmitterRequest.h:30
File: setEmitter.h.
Definition: setEmitterRequest.h:28
Definition: readerWriterRegistry.h:39
DtRwBoolean myOn
Definition: setEmitterRequest.h:92
virtual int netRepSize() const
DtRwInt myEmitterId
Definition: setEmitterRequest.h:91
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtNetBoolean myOn
Definition: setEmitterRequest.h:31

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)