VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scriptComponentSystem.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
8 
10 #include <vrfutil/objectCounter.h>
13 
14 class DtSimManager;
15 
20  : public DtAsciiSerializable
21 #ifdef DtObjectDebugger_Enable
22  , public DtObjectDebugger<DtScriptComponentSystem>
23 #endif
24 {
25 private:
28 public:
29  DtScriptComponentSystem(const DtVrfObject* vrfObject);
30 
32 
33  DtScriptComponentSystem& operator=(const DtScriptComponentSystem &orig);
34 
36 
37  bool operator==(const DtScriptComponentSystem& orig);
38 
41 
43  virtual std::string getName() const;
44 
46  virtual std::string getFullName() const;
47 
49  virtual bool isEnabled() const;
50 
52  virtual bool isValid() const;
53 
57  virtual DtReaderWriter* getAttribute(const std::string& attributeName,
58  bool& error) const;
59 
62  virtual bool setAttribute(const std::string &attributeName,
63  DtReaderWriter* value);
64 
67  virtual std::list<std::string> getAllAttributeNames()const;
69 
72 
74  virtual const DtComponentSystem* componentSystem() const;
75 
77  virtual void setComponentSystem(const DtComponentSystem* system);
78 
80  virtual DtString serialize();
81 
86  virtual void init(const DtSimManager*);
87 
90  bool deserialize(const DtString& data);
91 
92  virtual DtString objectType() const;
93 
95  //default values
96  static DtAsciiSerializable* creator();
97 
100 
101 protected:
105 };
106 
108 
109 DT_DLL_vrfobjcore std::ostream& operator<<(std::ostream&, const DtScriptComponentSystem&);
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtSimManager * mySimManager
Returns the vrf object referenced by myObject.
Definition: scriptComponentSystem.h:102
A DtComponentSystem is a collection of DtSimComponents that are associated with each other...
Definition: componentSystem.h:35
Definition: asciiSerializable.h:33
virtual bool deserialize(const DtString &)=0
This function should take the string that was serialized via serialize() and fill this object with th...
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
virtual void init(void *userData)
This function is called right after the object is constructed during the deserialization process...
Definition: asciiSerializable.h:71
Definition: readerWriter.h:85
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:265
Default on in debug, off in release.
Definition: objectCounter.h:31
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
virtual DtString serialize()=0
The following characters are reserved and cannot be used in serialization: &#39;|&#39;, &#39;:&#39;.
const DtVrfObject * myObject
Definition: scriptComponentSystem.h:103
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Definition: asyncJobServer.h:39
virtual DtString objectType() const =0
Should return the string name of this object.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
This class is a wrapper for a DtCompSystem for use by scripts.
Definition: scriptComponentSystem.h:19
const DtComponentSystem * myComponentSystem
Definition: scriptComponentSystem.h:104

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)