VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hlaLogicalTimeInterval.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2015 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #ifdef DtHLA
9 
10 #include <vlutil/vlMachineTypes.h>
11 #include <matrix/vlVector.h>
12 #include <vlutil/vlString.h>
13 #include <vector>
14 
15 #ifndef DtHLA_1516
16 //HLA 1.3 has no interval defined, just time.
17 #define LogicalTimeInterval FedTime
18 #endif
19 
20 #include "vl/rtiNamespace.h"
21 
27 class DT_DLL_VL DtHlaLogicalTimeInterval
28 {
29 public:
30  DtHlaLogicalTimeInterval();
31  DtHlaLogicalTimeInterval(const RTI::LogicalTimeInterval& val);
32  DtHlaLogicalTimeInterval(const DtHlaLogicalTimeInterval& orig);
33  DtHlaLogicalTimeInterval& operator=(const DtHlaLogicalTimeInterval& orig);
34  DtHlaLogicalTimeInterval& operator=(const RTI::LogicalTimeInterval& orig);
35 
36  ~DtHlaLogicalTimeInterval();
37 
38  virtual void setHlaLogicalTimeInterval(const RTI::LogicalTimeInterval& val);
39  virtual const RTI::LogicalTimeInterval& hlaLogicalTimeInterval() const;
40  virtual DtString hlaLogicalTimeIntervalString() const;
41 
42  bool operator==(const DtHlaLogicalTimeInterval& other) const;
43  bool operator!=(const DtHlaLogicalTimeInterval& other) const;
44 
45  int netSize() const;
46  static int octetBoundary();
47  unsigned int getPaddingSize(unsigned int byteOffset, unsigned int boundary, unsigned int hint = 1) const;
48 
49  void writeToBuffer( char* buffer ) const;
50  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
51 
52  virtual void printData() const;
53 
54  virtual void printDataToStream(std::ostream &) const;
55 
56 protected:
57 
58  mutable RTI::LogicalTimeInterval* myHlaLogicalTimeInterval;
59 };
60 
61 DT_DLL_VL std::ostream& operator<<(std::ostream& stream, const DtHlaLogicalTimeInterval&);
62 
63 #endif //DtHLA_1516

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)