VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrlFedTime.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1997 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vrlFedTime.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
10 
11 //#ifndef _WIN32 //! On Windows ignore this file altogether
12 
13 #ifndef DtVrlFedTime_H_
14 #define DtVrlFedTime_H_
15 
16 #if DtHLA
17 
18 #include <RTI.hh>
19 #include <sys/types.h>
20 #include <string.h>
21 #include "MachineTypes.h"
22 
23 #if _PowerUX || RTI_USES_STD_FSTREAM
24 #include <iostream>
25 #define ostream std::ostream
26 #define istream std::istream
27 #else
28 #include "iostream.h"
29 #endif
30 
31 class DT_DLL_VL DtVrlFedTime : public RTI::FedTime {
32 //-----------------------------------------------------------------
34 //-----------------------------------------------------------------
35 public:
36  DtVrlFedTime();
37  DtVrlFedTime(const double&);
38  DtVrlFedTime(const DtVrlFedTime&);
39  virtual ~DtVrlFedTime();
40 
41 //-----------------------------------------------------------------
43 //-----------------------------------------------------------------
44 public:
45  virtual void setZero();
46  virtual RTI::Boolean isZero();
47  virtual void setEpsilon();
48  virtual void setPositiveInfinity();
49  virtual RTI::Boolean isPositiveInfinity();
50  virtual int encodedLength() const;
51  virtual void encode(char *buff) const;
52  virtual int getPrintableLength() const;
53  virtual void getPrintableString(char*) const;
54  virtual void getPrintableString(char*);
55 
56 //-----------------------------------------------------------------
58 //-----------------------------------------------------------------
59 public:
60  virtual RTI::FedTime& operator+= (const RTI::FedTime&)
61  throw (RTI::InvalidFederationTime);
62 
63  virtual RTI::FedTime& operator-= (const RTI::FedTime&)
64  throw (RTI::InvalidFederationTime);
65 
66  virtual RTI::Boolean operator<= (const RTI::FedTime&) const
67  throw (RTI::InvalidFederationTime);