VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
transferRequestEvent.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 <vrfutil/rwUUID.h>
10 #include <vlpi/simulationAddress.h>
11 #include <set>
12 
15 namespace makVrfEvents
16 {
18  {
19  public:
21  virtual ~DtTransferRequestEvent() override;
22 
25 
26  void addStateDataToDivest(const DtUUID&);
27  const std::set<DtUUID>& stateDataToDivest() const;
28  void setStateDataToDivest(const std::set<DtUUID>& u);
29 
31  void setData(const char* data, unsigned int length);
32  const char* data() const;
33  unsigned int dataSize() const;
34 
35  void setDestinationAddress(const DtSimulationAddress&);
36  const DtSimulationAddress& destinationAddress() const;
37 
38  void setTransactionId(unsigned long long);
39  unsigned long long transactionId() const;
40 
41  virtual DtEvent* clone() const override { return new DtTransferRequestEvent(*this); };
42  virtual bool isNetworkEvent() const override { return false; };
43 
44  protected:
45  std::set<DtUUID> myStateDataToDivest;
46  unsigned long long myTransactionId;
47  char* myData;
48  unsigned int myDataSize;
49  DtSimulationAddress myDestinationAddress;
50  };
51 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
unsigned int myDataSize
Definition: transferRequestEvent.h:48
char * myData
Definition: transferRequestEvent.h:47
Definition: transferRequestEvent.h:17
Contains the DtUUID class declaration.
unsigned long long myTransactionId
Definition: transferRequestEvent.h:46
virtual DtEvent * clone() const override
Definition: transferRequestEvent.h:41
Definition: event.h:13
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
#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
DtSimulationAddress myDestinationAddress
Definition: transferRequestEvent.h:49

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)