VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
createObjectService.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 
13 
16 {
17 private:
19 
23 
24 public:
26 
27  virtual ~DtCreateObjectService();
28 
31 
34 
39 
41  virtual void removeAndDelete(const DtUUID& objectUuid, bool removeFromOrbat = false, bool removeSubordinates = true);
42  virtual void removeAndDelete(DtLocalObject* localObject, bool removeFromOrbat = false, bool removeSubordinates = true);
43 
44  virtual void removeAndDeleteAll(bool andDeleteFromOrbat = false);
45 
46  virtual void queueSetSuperiorToForce(const DtUUID&, int force, int designator = 0);
47  virtual void queueSetSuperior(const DtUUID& subordinate, const DtUUID& superior, int designator = 0);
49  virtual bool hasOutstandingSubordinateChanges() const;
50 
52  virtual DtString nextNameWithPrefix(int maxLength, const DtString& prefix);
53 
54 protected:
57 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual DtCreateObjectHandle createAndInitVrfObject(const DtIfCreateVrfObject *creationInfo)=0
Create a new local vrf object from an interface message.
DtSimulationServices * mySimulationServices
Definition: createObjectService.h:56
class DtLocalObjectManager:
Definition: localObjectManager.h:151
Abstract interface for simulation service which creates and deletes local objects.
Definition: createObjectService.h:15
DtCreateObjectServiceInterface & operator=(const DtCreateObjectServiceInterface &)
Not implemented.
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
virtual void removeAndDelete(const DtUUID &objectUuid, bool removeFromOrbat=false, bool removeSubordinates=true)=0
Delete object from the simulation.
DtLocalObjectManager * myObjectManager
Definition: createObjectService.h:55
virtual void removeAndDeleteAll(bool andDeleteFromOrbat=false)=0
Remove all objects from the simulation.
The DtLocalObjectCreateInformation class is a subset of the information used in the DtIfCreateVrfObje...
Definition: vrfLocalObjectCreateInformation.h:26
virtual DtRwStringAttributeList * customizedMarkingsFor(const DtObjectType &ot)=0
Definition: objectType.h:27
virtual void queueSetSuperiorToForce(const DtUUID &subordinate, int force, int designator=0)=0
Set the superior of subordinate to be the top level force object of the specified force...
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtString nextNameWithPrefix(int maxLength, const DtString &prefix)=0
Returns the next object name with the give prefix.
virtual DtCreateObjectHandle createLocalObject(const DtVrfLocalObjectCreateInformation &creationInfo)=0
Create a new local object using the provided arguments. The returned handle includes the UUID that th...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
virtual bool hasOutstandingSubordinateChanges() const =0
Whether or not there are subordinate operation changes queued up.
virtual void queueSetSuperior(const DtUUID &subordinate, const DtUUID &superior, int designator=0)=0
Set subordinate to have a new superior.
This is the FIXED length portion of a DtIfAggregateAs message content when placed on the network...
Definition: ifAggregateAs.h:39
class DtRwStringAttributeList:
Definition: rwStringAttributeList.h:29
class DtIfCreateVrfObject:
Definition: ifCreateVrfObject.h:77
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

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)