MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HLAfloat64TimeFactory.h
Go to the documentation of this file.
1 /***********************************************************************
2  The IEEE hereby grants a general, royalty-free license to copy, distribute,
3  display and make derivative works from this material, for all purposes,
4  provided that any use of the material contains the following
5  attribution: "Reprinted with permission from IEEE 1516.1(TM)-2010".
6  Should you require additional information, contact the Manager, Standards
7  Intellectual Property, IEEE Standards Association (stds-ipr@ieee.org).
8 ***********************************************************************/
9 /***********************************************************************
10  IEEE 1516.1 High Level Architecture Interface Specification C++ API
11  File: RTI/time/HLAfloat64TimeFactory.h
12 ***********************************************************************/
13 
14 #ifndef RTI_HLAfloat64TimeFactory_H_
15 #define RTI_HLAfloat64TimeFactory_H_
16 
17 #include <RTI/LogicalTimeFactory.h>
18 
19 namespace rti1516e
20 {
21  class HLAfloat64Time;
22  class HLAfloat64Interval;
23 
24  // Defines interface for HLAfloat64TimeFactory which presents a
25  // floating point-based time/interval representation in the range 0 - 2^63-1.
26 
27  const std::wstring HLAfloat64TimeName(L"HLAfloat64Time");
28 
30  {
31  public:
33 
34  virtual ~HLAfloat64TimeFactory ()
35  throw ();
36 
37  // Return a LogicalTime with the given value
38  virtual std::auto_ptr< HLAfloat64Time > makeLogicalTime (
39  double value)
40  throw (rti1516e::InternalError);
41 
42  // Return a LogicalTime with a value of "initial"
43  virtual std::auto_ptr< LogicalTime > makeInitial()
44  throw (InternalError);
45 
46  // Return a LogicalTime with a value of "final"
47  virtual std::auto_ptr< LogicalTime > makeFinal()
48  throw (InternalError);
49 
50  // Return a LogicalTimeInterval with the given value
51  virtual std::auto_ptr< HLAfloat64Interval > makeLogicalTimeInterval (
52  double value)
53  throw (rti1516e::InternalError);
54 
55  // Return a LogicalTimeInterval with a value of "zero"
56  virtual std::auto_ptr< LogicalTimeInterval > makeZero()
57  throw (InternalError);
58 
59  // Return a LogicalTimeInterval with a value of "epsilon"
60  virtual std::auto_ptr< LogicalTimeInterval > makeEpsilon()
61  throw (InternalError);
62 
63  // LogicalTime decode from an encoded LogicalTime
64  virtual std::auto_ptr< LogicalTime > decodeLogicalTime (
65  VariableLengthData const & encodedLogicalTime)
66  throw (InternalError,
67  CouldNotDecode);
68 
69  // Alternate LogicalTime decode that reads directly from a buffer
70  virtual std::auto_ptr< LogicalTime > decodeLogicalTime (
71  void* buffer,
72  size_t bufferSize)
73  throw (InternalError,
74  CouldNotDecode);
75 
76  // LogicalTimeInterval decode from an encoded LogicalTimeInterval
77  virtual std::auto_ptr< LogicalTimeInterval > decodeLogicalTimeInterval (
78  VariableLengthData const & encodedValue)
79  throw (InternalError,
80  CouldNotDecode);
81 
82  // Alternate LogicalTimeInterval decode that reads directly from a buffer
83  virtual std::auto_ptr< LogicalTimeInterval > decodeLogicalTimeInterval (
84  void* buffer,
85  size_t bufferSize)
86  throw (InternalError,
87  CouldNotDecode);
88 
89  virtual std::wstring getName () const;
90  };
91 }
92 
93 #endif // RTI_HLAfloat64TimeFactory_H_
94 
#define RTI_EXPORT
Definition: SpecificConfig.h:63
Definition: LogicalTimeFactory.h:50
Definition: VariableLengthData.h:34
Definition: HLAfloat64TimeFactory.h:29
const std::wstring HLAfloat64TimeName(L"HLAfloat64Time")

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)