VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifTakeOwnership.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfmsgs/vrfmsgsDefines.h"
13 #include <vrfutil/rwUUID.h>
14 #include <vector>
15 
19 {
20 public:
21 
24 
26  virtual ~DtIfTakeOwnership();
27 
30 
33 
35  virtual int type() const;
36 
37  virtual DtSimInterfaceContent * clone() const;
38 
39  virtual void addTakeOwnershipOf(const DtUUID&);
40  virtual void setTakeOwnershipOf(const std::vector<DtUUID>&);
41  const std::vector<DtUUID>& takeOwnershipOf() const
42  {
43  return myTakeOwnershipOf;
44  }
45 
46 
47  virtual int netRepSize() const;
48  virtual bool setFromNet(const char* contentBuffer,
49  unsigned contentSize);
50  virtual bool setToNet();
51 
52  virtual void printDataToString(DtString& str);
53 
54  static DtSimInterfaceContent* creator();
55 
56 protected:
57  std::vector<DtUUID> myTakeOwnershipOf;
58 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
virtual int type() const =0
Contains the DtUUID class declaration.
virtual void printDataToString(DtString &str)
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
Will send a message to a specific back-end (if this is sent to all it will not be processed) to take ...
Definition: ifTakeOwnership.h:18
std::vector< DtUUID > myTakeOwnershipOf
Definition: ifTakeOwnership.h:57
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0
const std::vector< DtUUID > & takeOwnershipOf() const
Definition: ifTakeOwnership.h:41

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)