MAK RTIspy API Documentation for HLA 1516
fedtime.hh
Go to the documentation of this file.
1 #ifndef FedTime_h
2 #define FedTime_h
3 
4 #include <RTI.hh>
5 #include <sys/types.h>
6 #include <string.h>
7 
9 //-----------------------------------------------------------------
10 // Constructors and Destructors
11 //-----------------------------------------------------------------
12 public:
13  RTIfedTime();
14  RTIfedTime(const RTI::Double&);
15  RTIfedTime(const RTI::FedTime&);
16  RTIfedTime(const RTIfedTime&);
17  virtual ~RTIfedTime();
18 
19 //-----------------------------------------------------------------
20 // Overloaded functions from RTI::FedTime
21 //-----------------------------------------------------------------
22 public:
23  virtual void setZero();
24  virtual RTI::Boolean isZero();
25  virtual void setEpsilon();
26  virtual void setPositiveInfinity();
28  virtual int encodedLength() const;
29  virtual void encode(char *buff) const;
30  virtual int getPrintableLength() const;
31  virtual void getPrintableString(char*);
32 
33 //-----------------------------------------------------------------
34 // Overloaded operators from RTI::FedTime
35 //-----------------------------------------------------------------
36 public:
37  virtual RTI::FedTime& operator+= (const RTI::FedTime&)
38  throw (RTI::InvalidFederationTime);
39 
40  virtual RTI::FedTime& operator-= (const RTI::FedTime&)
41  throw (RTI::InvalidFederationTime);
42 
43  virtual RTI::Boolean operator<= (const RTI::FedTime&) const
44  throw (RTI::InvalidFederationTime);
45 
46  virtual RTI::Boolean operator< (const RTI::FedTime&) const
47  throw (RTI::InvalidFederationTime);
48 
49  virtual RTI::Boolean operator>= (const RTI::FedTime&) const
50  throw (RTI::InvalidFederationTime);
51 
52  virtual RTI::Boolean operator> (const RTI::FedTime&) const
53  throw (RTI::InvalidFederationTime);
54 
55  virtual RTI::Boolean operator== (const RTI::FedTime&) const
56  throw (RTI::InvalidFederationTime);
57 
58  virtual RTI::FedTime& operator= (const RTI::FedTime&)
59  throw (RTI::InvalidFederationTime);
60 
61 //-----------------------------------------------------------------
62 // Implementation functions
63 //-----------------------------------------------------------------
64 public:
65  virtual RTI::Double getTime() const;
66 
67 //-----------------------------------------------------------------
68 // Implementation operators
69 //-----------------------------------------------------------------
70  virtual RTI::Boolean operator== (const RTI::Double&) const
71  throw (RTI::InvalidFederationTime);
72 
73  virtual RTI::Boolean operator!= (const RTI::FedTime&) const
74  throw (RTI::InvalidFederationTime);
75 
76  virtual RTI::Boolean operator!= (const RTI::Double&) const
77  throw (RTI::InvalidFederationTime);
78 
79  virtual RTI::FedTime& operator= (const RTIfedTime&)
80  throw (RTI::InvalidFederationTime);
81 
82  virtual RTI::FedTime& operator= (const RTI::Double&)
83  throw (RTI::InvalidFederationTime);
84 
85  virtual RTI::FedTime& operator*= (const RTI::FedTime&)
86  throw (RTI::InvalidFederationTime);
87 
88  virtual RTI::FedTime& operator/= (const RTI::FedTime&)
89  throw (RTI::InvalidFederationTime);
90 
91  virtual RTI::FedTime& operator+= (const RTI::Double&)
92  throw (RTI::InvalidFederationTime);
93 
94  virtual RTI::FedTime& operator-= (const RTI::Double&)
95  throw (RTI::InvalidFederationTime);
96 
97  virtual RTI::FedTime& operator*= (const RTI::Double&)
98  throw (RTI::InvalidFederationTime);
99 
100  virtual RTI::FedTime& operator/= (const RTI::Double&)
101  throw (RTI::InvalidFederationTime);
102 
103  virtual RTIfedTime operator+ (const RTI::FedTime&)
104  throw (RTI::InvalidFederationTime);
105 
106  virtual RTIfedTime operator+ (const RTI::Double&)
107  throw (RTI::InvalidFederationTime);
108 
109  virtual RTIfedTime operator- (const RTI::FedTime&)
110  throw (RTI::InvalidFederationTime);
111 
112  virtual RTIfedTime operator- (const RTI::Double&)
113  throw (RTI::InvalidFederationTime);
114 
115  virtual RTIfedTime operator* (const RTI::FedTime&)
116  throw (RTI::InvalidFederationTime);
117 
118  virtual RTIfedTime operator* (const RTI::Double&)
119  throw (RTI::InvalidFederationTime);
120 
121  virtual RTIfedTime operator/ (const RTI::FedTime&)
122  throw (RTI::InvalidFederationTime);
123 
124  virtual RTIfedTime operator/ (const RTI::Double&)
125  throw (RTI::InvalidFederationTime);
126 
127 //-----------------------------------------------------------------
128 // Implementation friends
129 //-----------------------------------------------------------------
130 public:
131  //
132  // RTI_STD was added for the RTI 1.3NG to allow the use of the Standard C++
133  // ostream or to use the legacy ostream. The issue concerns whether ostream
134  // is in the global namespace or in namespace std.
135  //
136  friend RTI_STD::ostream RTI_EXPORT & operator<< (RTI_STD::ostream&, const RTI::FedTime&);
137 
138 //-----------------------------------------------------------------
139 // Implementation member variables
140 //-----------------------------------------------------------------
141 private:
146 };
147 
148 //-----------------------------------------------------------------
149 // Global operators
150 //-----------------------------------------------------------------
151 
156 
157 #endif

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)