VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pActiveSonar.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 
13 
14 namespace MAKVrExchange
15 {
16 
21  {
22  public:
23 
26 
29 
31  virtual ~DtPortalActiveSonar();
32 
34  DtPortalActiveSonar& operator = ( const DtPortalActiveSonar& other );
35 
38 
39  virtual bool operator == ( const DtPortalActiveSonar& other ) const;
40  virtual bool operator != ( const DtPortalActiveSonar& other ) const;
41 
43 
46 
47  DtDEC_ATTRIBUTE( DtU16, AcousticName, acousticName );
48  DtDEC_ATTRIBUTE( DtU8, FunctionCode, functionCode );
49  DtDEC_ATTRIBUTE( DtU8, AcousticsIdentifier, acousticsIdentifier );
50  DtDEC_ATTRIBUTE( DtActiveSonarBeamList, ActiveSonarBeamList, activeSonarBeamList );
51 
53  public:
54 
55  bool isBeamWithinList( DtU8 beamId ) const;
56  DtActiveSonarBeamData* findBeam( DtU8 beamId );
57  const DtActiveSonarBeamData* findBeam( DtU8 beamId ) const;
60  DtActiveSonarBeamData* addBeam( DtU8 beamId );
62  void removeBeam( DtU8 beamId );
63 
65 
66  public:
67 
69 
70  static DtPortalMessage* create();
71 
72  virtual unsigned int netSize() const;
73  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const ;
74  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
75 
76  virtual std::ostream& printDataToStream( std::ostream& str ) const;
77 
78  };
79 
80 
82  {
83  return new DtPortalActiveSonar();
84  }
85 
86 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)