VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
transferResponseEvent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
9 #include <vlpi/simulationAddress.h>
10 #include <vrfutil/rwUUID.h>
11 
13 namespace makVrfEvents
14 {
16  {
17  public:
18  enum Type
19  {
22  UserState = 32
23  };
24 
26  virtual ~DtTransferResponseEvent() override;
27 
30 
31  void setAccept(bool);
32  bool accept() const;
33 
34  void setTransactionId(unsigned long long);
35  unsigned long long transactionId() const;
36 
37  void setDestinationAddress(const DtSimulationAddress&);
38  const DtSimulationAddress& destinationAddress() const;
39 
40  virtual DtEvent* clone() const override { return new DtTransferResponseEvent(*this); };
41 
42  typedef std::map<Type, std::string> Data;
43  typedef std::map<DtUUID, Data> DataMap;
44  virtual void addData(const DtUUID&, Type type, const std::string&);
45  std::string data(const DtUUID& uuid, Type) const;
46  const Data& data(const DtUUID& uuid) const;
47  const DataMap& data() const
48  {
49  return myData;
50  }
51 
52  void setData(const DataMap& d)
53  {
54  myData = d;
55  }
56 
57  protected:
58  unsigned long long myTransactionId;
59  bool myAccept;
61  DtSimulationAddress myDestinationAddress;
62  };
63 }
DataMap myData
Definition: transferResponseEvent.h:60
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Type
Definition: transferResponseEvent.h:18
const DataMap & data() const
Definition: transferResponseEvent.h:47
Contains the DtUUID class declaration.
Definition: transferResponseEvent.h:21
bool myAccept
Definition: transferResponseEvent.h:59
Definition: event.h:13
std::map< DtUUID, Data > DataMap
Definition: transferResponseEvent.h:43
unsigned long long myTransactionId
Definition: transferResponseEvent.h:58
DtSimulationAddress myDestinationAddress
Definition: transferResponseEvent.h:61
std::map< Type, std::string > Data
Definition: transferResponseEvent.h:40
#define DT_DLL_vrfMsgTransport
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfCommunicationManagerDefines.h:26
Definition: transferResponseEvent.h:20
void setData(const DataMap &d)
Definition: transferResponseEvent.h:52
Definition: transferResponseEvent.h:15

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)