VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
randomizedObjectParameters.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
21 {
22 
23 public:
25  DtRandomizedObjectParameters(const DtString& name = DtString::nullString(),
26  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(), DtEnvValueSP* objectNode = NULL);
28  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(), DtEnvValueSP* objectNode = NULL);
29 
32 
33 protected:
36  const DtString& name = DtString::nullString(),
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
40  const DtSymbolString& name,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
43 public:
45  const DtString& name = DtString::nullString(),
46  DtReaderWriterRegistry* parentRegistry = NULL) const;
47 
49  const DtSymbolString& name,
50  DtReaderWriterRegistry* parentRegistry = NULL) const;
51 
55  virtual bool init();
56 
62  virtual DtString type() const;
63 
65  static DtVrfObjectParameters * creator(DtEnvironmentSP env, DtEnvValueSP* objectNode);
66 
68  virtual DtObjectType pickRandomSimulationObject() const;
69 
70  virtual bool inheritValues(const DtVrfObjectParameters * benefactor);
71 
72  virtual void inheritValuesFromThisType(
73  const DtVrfObjectParameters * benefactor);
74 };
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:63
DtVrfObjectParameters; holds all of the configurable parameters for the DtVrfObjectStateRepository cl...
Definition: randomizedObjectParameters.h:20
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
virtual bool inheritValues(const DtVrfObjectParameters *benefactor)
Values left unspecified may be inherited from a parameter block of the same type, typically an ancest...
virtual DtVrfObjectParameters * clone(const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const
Definition: readerWriterRegistry.h:39
static DtVrfObjectParameters * creator(DtEnvironmentSP env, DtEnvValueSP *objectNode)
virtual bool init()
Invoked when created so that deriving classes may do virtual allocation as necessary. The base class version creates the local and remote composed object types. Calls createSubordinateObjectsList() and createAttachedObjectsList() to create the mySubordinateObjects and myAttachedObjects data members, respectively.
Definition: objectType.h:27
virtual void inheritValuesFromThisType(const DtVrfObjectParameters *benefactor)
virtual DtString type() const
Returns a string identifying the type of parameter descriptor. Used to create the descriptor on read ...

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)