VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hlaLogicalTime.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 #include "vl/rtiNamespace.h"
16 
17 #ifndef DtHLA_1516
18 #define LogicalTime FedTime
19 #endif
20 
26 class DT_DLL_VL DtHlaLogicalTime
27 {
28 public:
29  DtHlaLogicalTime();
30  DtHlaLogicalTime(const RTI::LogicalTime& val);
31  DtHlaLogicalTime(const DtHlaLogicalTime& orig);
32  DtHlaLogicalTime& operator=(const DtHlaLogicalTime& orig);
33  DtHlaLogicalTime& operator=(const RTI::LogicalTime& orig);
34 
35  ~DtHlaLogicalTime();
36 
37  virtual void setHlaLogicalTime(const RTI::LogicalTime& val);
38  virtual const RTI::LogicalTime& hlaLogicalTime() const;
39  virtual DtString hlaLogicalTimeString() const;
40 
41  bool operator==(const DtHlaLogicalTime& other) const;
42  bool operator!=(const DtHlaLogicalTime& other) const;
43 
44  int netSize() const;
45  static int octetBoundary();
46  unsigned int getPaddingSize(unsigned int byteOffset, unsigned int boundary, unsigned int hint = 1) const;
47 
48  void writeToBuffer( char* buffer ) const;
49  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
50 
51  virtual void printData() const;
52 
53  virtual void printDataToStream(std::ostream &) const;
54 
55 protected:
56 
57  mutable RTI::LogicalTime* myHlaLogicalTime;
58 };
59 
60 DT_DLL_VL std::ostream& operator<<(std::ostream& stream, const DtHlaLogicalTime&);
61 
62 #endif //DtHLA
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Contains the DtString class declaration.
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
This file declares DtVector and DtVector32.
const bool operator!=(const DtU128 &lhs, const DtU128 &rhs)
Instances of DtString are used to represent strings.
Definition: vlString.h:29
This file contains typedefs for machine dependant types.

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)