VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfExtendedVrlFederateAmbassador1516.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 #if DtHLA_1516
14 
15 #if DtHLA_1516_EVOLVED
16  #include <vl/vrlFederateAmbassador1516e.h>
17 #else
18  #include <vl/vrlFederateAmbassador1516.h>
19 #endif
20 
22 
24 {
25 public:
28 
31  throw () ;
32 
33 private:
36 
39 
40 public:
42  static DtVrlFederateAmbassador* create();
43 
44  // Ignores federation saves, and immediately responds with
45  // "Federation Save Complete".
47 #if DtHLA_1516_EVOLVED
48  virtual void initiateFederateSave(std::wstring const & label)
49  throw (RTI::FederateInternalError);
50 
51  virtual void initiateFederateSave(std::wstring const & label,
52  RTI::LogicalTime const & theTime)
53  throw (RTI::FederateInternalError);
54 #else
55  virtual void initiateFederateSave(std::wstring const & label)
56  throw (RTI::UnableToPerformSave,
57  RTI::FederateInternalError);
58 
59  virtual void initiateFederateSave(std::wstring const & label,
60  RTI::LogicalTime const & theTime)
61  throw (RTI::UnableToPerformSave,
62  RTI::InvalidLogicalTime,
63  RTI::FederateInternalError);
64 #endif
65  virtual void federationSaved()
66  throw( RTI::FederateInternalError);
67  virtual void federationNotSaved()
68  throw( RTI::FederateInternalError );
70 
71 #if DtHLA_1516_EVOLVED
72  virtual void initiateFederateRestore (
73  std::wstring const & label,
74  std::wstring const & federateName,
75  RTI::FederateHandle handle)
76  throw (
77  RTI::FederateInternalError);
78 
79  // 4.29
80  virtual void federationRestored ()
81  throw (RTI::FederateInternalError);
82 
83  virtual void federationNotRestored(
84  RTI::RestoreFailureReason theRestoreFailureReason)
85  throw (RTI::FederateInternalError);
86 
87 #else
88  virtual void initiateFederateRestore(std::wstring const & label,
89  RTI::FederateHandle handle)
90  throw (RTI::SpecifiedSaveLabelDoesNotExist,
91  RTI::CouldNotInitiateRestore,
92  RTI::FederateInternalError);
93 
94  virtual void federationRestored()
95  throw (RTI::FederateInternalError);
96 
97  virtual void federationNotRestored(
98  RTI::RestoreFailureReason theRestoreFailureReason)
99  throw (RTI::FederateInternalError);
100 #endif
101 
102 protected:
103 
104  bool myWaitingForSave;
105  bool myWaitingForRestore;
106 
107 };
108 
109 #endif
110 #endif

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)