MAK RTIspy API Documentation for HLA Evolved
HLAinteger64TimeFactory.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/HLAinteger64TimeFactory.h
12 ***********************************************************************/
13 
14 #ifndef RTI_HLAinteger64TimeFactory_H_
15 #define RTI_HLAinteger64TimeFactory_H_
16 
17 #include <RTI/LogicalTimeFactory.h>
19 
20 
21 // Defines interface for HLAinteger64TimeFactory which presents an integer-based
22 // time /interval representation in the range 0 - 2^63-1.
23 
24 namespace rti1516e
25 {
26  const std::wstring HLAinteger64TimeName(L"HLAinteger64Time");
27 
28  class HLAinteger64Time;
29  class HLAinteger64Interval;
30 
32  {
33  public:
35 
36  virtual ~HLAinteger64TimeFactory ()
37  throw();
38 
39  // Return a LogicalTime with a value of "initial"
40  virtual std::auto_ptr< LogicalTime > makeInitial()
41  throw (InternalError);
42 
43  // Return a LogicalTime with a value of "final"
44  virtual std::auto_ptr< LogicalTime > makeFinal()
45  throw (InternalError);
46 
47  // Return a LogicalTimeInterval with a value of "zero"
48  virtual std::auto_ptr< LogicalTimeInterval > makeZero()
49  throw (InternalError);
50 
51  // Return a LogicalTimeInterval with a value of "epsilon"
52  virtual std::auto_ptr< LogicalTimeInterval > makeEpsilon()
53  throw (InternalError);
54 
55  virtual std::auto_ptr< HLAinteger64Time > makeLogicalTime (
56  Integer64 value)
57  throw (rti1516e::InternalError);
58 
59  virtual std::auto_ptr< HLAinteger64Interval > makeLogicalTimeInterval (
60  Integer64 value)
61  throw (rti1516e::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_HLAinteger64TimeFactory_H_
94 

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)