VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
createObjectServiceInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
11 #include <boost/signals2.hpp>
12 
14 class DtIfAggregateAs;
16 class DtLocalObject;
18 class DtEntityType;
19 
23 typedef enum
24 {
29 
37 {
38 private:
40 
44 
45 public:
47  virtual ~DtCreateObjectServiceInterface() = default;
48 
50  virtual DtCreateObjectHandle createAndInitVrfObject(const DtIfCreateVrfObject* creationInfo) = 0;
51 
53  virtual DtCreateObjectHandle createAndInitVrfObject(DtIfAggregateAs* aggInfo) = 0;
54 
58  virtual DtCreateObjectHandle createLocalObject(const DtVrfLocalObjectCreateInformation& creationInfo) = 0;
59 
61 
62  virtual void removeAndDelete(const DtUUID& objectUuid, bool removeFromOrbat = false, bool removeSubordinates = true) = 0;
63  virtual void removeAndDelete(DtLocalObject* localObject, bool removeFromOrbat = false, bool removeSubordinates = true) = 0;
65 
67  virtual void removeAndDeleteAll(bool andDeleteFromOrbat = false) = 0;
68 
70  virtual void queueSetSuperiorToForce(const DtUUID& subordinate, int force, int designator = 0) = 0;
72  virtual void queueSetSuperior(const DtUUID& subordinate, const DtUUID& superior, int designator = 0) = 0;
73 
74  virtual DtRwStringAttributeList* customizedMarkingsFor(const DtEntityType& ot) = 0;
75 
77  virtual bool hasOutstandingSubordinateChanges() const = 0;
78 
80  virtual DtString nextNameWithPrefix(int maxLength, const DtString& prefix) = 0;
81 
84  boost::signals2::signal<void ()> signal_subordinateChangesComplete;
85 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Handle returned from Create Object Service calls.
Definition: createObjectHandle.h:12
Service interface for creating and removing simulation objects as well as adjusting organization hier...
Definition: createObjectServiceInterface.h:36
Definition: createObjectServiceInterface.h:26
Definition: createObjectServiceInterface.h:27
The DtLocalObjectCreateInformation class is a subset of the information used in the DtIfCreateVrfObje...
Definition: vrfLocalObjectCreateInformation.h:26
boost::signals2::signal< void()> signal_subordinateChangesComplete
Signal sent when transitioning from having queued operations to having no queued operations.
Definition: createObjectServiceInterface.h:84
Definition: createObjectServiceInterface.h:25
This is the FIXED length portion of a DtIfAggregateAs message content when placed on the network...
Definition: ifAggregateAs.h:39
DtAggregateCreationMode
Defines how the initial DtAggregateState should be set upon creation of an aggregate entity...
Definition: createObjectServiceInterface.h:23
#define DT_DLL_vrfcore
This file is used to determine how to build.
Definition: vrfcoreDefines.h:25
class DtRwStringAttributeList:
Definition: rwStringAttributeList.h:29
class DtIfCreateVrfObject:
Definition: ifCreateVrfObject.h:77
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)