VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateObjectParameters.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <readerWriter/rwBoolean.h>
15 #include "readerWriter/rwVector.h"
16 #include "vrfutil/soilList.h"
18 
19 class DtString;
21 class DtFormationTable;
22 class DtFormation;
23 class DtEnvironment;
24 
30 {
31 public:
33  DtAggregateObjectParameters (const DtString& name = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(),
35  DtEnvValueSP* objectNode = NULL);
37  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(),
38  DtEnvValueSP* objectNode = NULL);
39 
40 protected:
43  const DtString& name = DtString::nullString(),
44  DtReaderWriterRegistry* parentRegistry = NULL);
46  const DtSymbolString& name,
47  DtReaderWriterRegistry* parentRegistry = NULL);
48 
49 public:
51  const DtAggregateObjectParameters& orig);
52 
54  virtual ~DtAggregateObjectParameters();
55 
56  virtual bool init();
57 
58  virtual DtVrfObjectParameters* clone(const DtString& name =
59  DtString::nullString(), DtReaderWriterRegistry* parentRegistry = NULL) const;
60  virtual DtVrfObjectParameters* clone(const DtSymbolString& name,
61  DtReaderWriterRegistry* parentRegistry = NULL) const;
62 
65  virtual bool inheritValues (const DtVrfObjectParameters * benefactor);
66 
69  virtual DtString type() const;
70 
72  benefactor);
73 
77  virtual DtFormation* getFormation(const DtString& formationName, DtString* retFormationName = NULL) const;
79  virtual DtFormation* getDefaultFormation() const;
80 
82  virtual DtFormationTable* formationTable();
83  virtual const DtFormationTable* formationTable() const;
84 
86  virtual bool canHaveSubordinates() const;
87  virtual void setCanHaveSubordinates(bool);
88 
89 protected:
92  virtual DtFormationTable* createFormationTable(const DtSymbolString& name,
93  DtReaderWriterRegistry* parentRegistry = NULL) const;
94 
95 public:
96 
98  static DtVrfObjectParameters* creator(DtEnvironmentSP env, DtEnvValueSP* objectNode);
99 
100 protected:
109 
116 };
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:59
Definition: symbolString.h:20
virtual bool inheritValues(const DtVrfObjectParameters *benefactor)
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtFormationTable * myFormationTable
Definition: aggregateObjectParameters.h:108
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
Definition: readerWriterRegistry.h:39
Instances of DtFormation are a list of DtFormationEntry objects which make up an aggregate formation...
Definition: formation.h:26
DtRwBoolean myCanHaveSubordinates
Parameter Name: can-have-subordinates Parameter Description: Flag indicating whether or not this aggr...
Definition: aggregateObjectParameters.h:114
virtual bool init()
Invoked when created so that deriving classes may do virtual allocation as necessary.
const DtMovingObjectParameters & operator=(const DtMovingObjectParameters &orig)
assignment operator
DtFormationTable.
Definition: formationTable.h:23
The moving-object-param parameter type is used for objects that are capable of movement, such as individual entities and aggregates.
Definition: movingObjectParameters.h:33
virtual DtString type() const
Should return the type of object this is a parameter block for.
static DtVrfObjectParameters * creator(DtEnvironmentSP env, DtEnvValueSP *objectNode)
virtual void inheritValuesFromThisType(const DtMovingObjectParameters *benefactor)
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
Contains the set of readable/writeable parameters associated with a pseudo-aggregate entities...
Definition: aggregateObjectParameters.h:29
virtual DtVrfObjectParameters * clone(const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const
File: rwVector.h.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)