VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlNetTimeStamp.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
8 #pragma once
9 
10 #include "vlTime.h"
11 #include "vlTimeStampType.h"
12 #include "vlNetTypes.h"
13 
14 #ifdef DtUSE_UTILITIES_NAMESPACE
15 namespace DtUSE_UTILITIES_NAMESPACE
16 {
17 #endif
18 
19 
22 
29 {
30 public:
31 
35 
38  DtNetTimeStamp(DtTime time,
40 
42  ~DtNetTimeStamp();
43 
45  DtNetTimeStamp(const DtNetTimeStamp& orig);
46 
48  DtNetTimeStamp& operator=(const DtNetTimeStamp& orig);
49 
53  operator DtU32 () const;
54 
57  DtTime time() const;
58 
61  void setTime(DtTime time);
62 
64  void setType(DtTimeStampType type);
65  DtTimeStampType type() const;
66 
67 public:
68 
70  static void setTimeStampDis5Increments(bool use1995);
71 
73  static bool timeStampDis5Increments();
74 
75 protected:
76 
78 
79 
80 protected:
81 
82  static double theHourFracPerHour;
83  static double theHourPerHourFrac;
84 
85 };
86 
87 #ifdef DtUSE_UTILITIES_NAMESPACE
88 }
89 #endif
90 
static double theHourFracPerHour
Definition: vlNetTimeStamp.h:82
This file contains the declaration of DtClock and DtTime.
Definition: vlTimeStampType.h:18
Network-order unsigned 32-bit quantity.
Definition: vlNetTypes.h:99
DtNetU32 myRep
Definition: vlNetTimeStamp.h:77
DtU32 DtTimeStamp
Host representation of a timeStamp.
Definition: vlNetTimeStamp.h:21
Instances of DtNetTimeStamp are network representations of a DIS time stamp.
Definition: vlNetTimeStamp.h:28
static double theHourPerHourFrac
Definition: vlNetTimeStamp.h:83
DtTimeStampType
Definition: vlTimeStampType.h:16
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)