VR-Exchange 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pRadioReceiverObject.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pEmbeddedSystem.h>
13 
14 namespace MAKVrExchange
15 {
16 
20  {
21  public:
22 
25 
28 
30  virtual ~DtPortalRadioReceiverObject();
31 
33  DtPortalRadioReceiverObject& operator = ( const DtPortalRadioReceiverObject& original );
34 
37 
38  int operator == ( const DtPortalRadioReceiverObject& rightOperand );
39  int operator != ( const DtPortalRadioReceiverObject& rightOperand );
40 
42 
45 
46  DtDEC_ATTRIBUTE( DtU32, RadioIndex, radioIndex );
47  DtDEC_ATTRIBUTE( DtFloat32, ReceivedPower, receivedPower );
48  DtDEC_ATTRIBUTE( DtString, ReceivedTransmitterIdentifier, receivedTransmitterIdentifier );
49  DtDEC_ATTRIBUTE( DtU32, RadioTransmitterIndex, radioTransmitterIndex );
50  DtDEC_ATTRIBUTE( DtU32, ReceiverOperationalStatus, receiverOperationalStatus );
51 
53 
54  public:
55 
57 
58  static DtPortalMessage* create();
59 
60  virtual unsigned int netSize() const;
61  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
62  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
63 
64  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
65 
66  };
67 
68 
70  {
71  return new DtPortalRadioReceiverObject();
72  }
73 
74 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
static const DtPortalMessageKind theKind
Definition: pRadioReceiverObject.h:56
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
The base class for all messages passed through the portal.
Definition: pMessage.h:65
static DtPortalMessage * create()
Definition: pRadioReceiverObject.h:69
Contains the DtPortalEmbeddedSystem class declaration.
Portal Radio Receiver Object class.
Definition: pRadioReceiverObject.h:19
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
Represents Embedded System Objects in a simulation.
Definition: pEmbeddedSystem.h:21

Document ID: Generated on Tue Aug 16 16:15:26 EDT 2022 from SVN revision 245901
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)