VR-Forces 4.8 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) 2013 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  , public DtObjectDebugger<DtScriptComponentSystem>
22 {
23 private:
26 public:
27  DtScriptComponentSystem(const DtVrfObject* vrfObject);
28 
30 
31  DtScriptComponentSystem& operator=(const DtScriptComponentSystem &orig);
32 
34 
35  bool operator==(const DtScriptComponentSystem& orig);
36 
39 
41  virtual std::string getName() const;
42 
44  virtual std::string getFullName() const;
45 
47  virtual bool isEnabled() const;
48 
50  virtual bool isValid() const;
51 
55  virtual DtReaderWriter* getAttribute(const std::string& attributeName,
56  bool& error) const;
57 
60  virtual bool setAttribute(const std::string &attributeName,
61  DtReaderWriter* value);
62 
65  virtual std::list<std::string> getAllAttributeNames()const;
67 
70 
72  virtual const DtComponentSystem* componentSystem() const;
73 
75  virtual void setComponentSystem(const DtComponentSystem* system);
76 
78  virtual DtString serialize();
79 
84  virtual void init(const DtSimManager*);
85 
88  bool deserialize(const DtString& data);
89 
90  virtual DtString objectType() const;
91 
93  //default values
94  static DtAsciiSerializable* creator();
95 
98 
99 protected:
103 };
104 
106 
107 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:100
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:69
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:101
#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:102
This class is a wrapper for a DtCompSystem for use by scripts.
Definition: scriptComponentSystem.h:19
const DtComponentSystem * myComponentSystem
Definition: scriptComponentSystem.h:102

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)