VR-Forces Developer's Guide
 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>
12 
14 
19  : public DtAsciiSerializable
20 #ifdef DtObjectDebugger_Enable
21  , public DtObjectDebugger<DtScriptComponentSystem>
22 #endif
23 {
24 private:
27 public:
28  DtScriptComponentSystem(const DtLocalObject* vrfObject);
29 
31 
32  DtScriptComponentSystem& operator=(const DtScriptComponentSystem& orig);
33 
34  virtual ~DtScriptComponentSystem() override;
35 
36  bool operator==(const DtScriptComponentSystem& orig);
37 
40 
42  virtual std::string getName() const;
43 
45  virtual std::string getFullName() const;
46 
48  virtual bool isEnabled() const;
49 
51  virtual bool isValid() const;
52 
56  virtual DtReaderWriter* getAttribute(const std::string& attributeName,
57  bool& error) const;
58 
61  virtual bool setAttribute(const std::string &attributeName,
62  DtReaderWriter* value);
63 
66  virtual std::list<std::string> getAllAttributeNames()const;
68 
71 
73  virtual const DtComponentSystem* componentSystem() const;
74 
76  virtual void setComponentSystem(const DtComponentSystem* system);
77 
79  virtual DtString serialize() override;
80 
85  virtual void init(const DtSimulationServices*, DtLocalObject* owner);
86 
89  virtual bool deserialize(const DtString& data) override;
90 
91  virtual DtString objectType() const override;
92 
94  //default values
95  static DtAsciiSerializable* creator();
96 
99 
100 protected:
101  virtual void componentSystemDestroyed();
102 
103 protected:
106  boost::signals2::connection myComponentSystemDestroyed;
108 };
109 
111 
112 DT_DLL_vrfobjcore std::ostream& operator<<(std::ostream&, const DtScriptComponentSystem&);
const DtLocalObject * myObject
Definition: scriptComponentSystem.h:105
A DtComponentSystem is a collection of DtSimComponents that are associated with each other...
Definition: componentSystem.h:35
Definition: asciiSerializable.h:40
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:78
Definition: readerWriter.h:85
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:31
Default on in debug, off in release.
Definition: objectCounter.h:27
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;.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
boost::signals2::connection myComponentSystemDestroyed
Definition: scriptComponentSystem.h:106
Definition: asyncJobServer.h:39
virtual DtString objectType() const =0
Should return the string name of this object. The object name should not be part of the serialization...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
const DtSimulationServices * mySimServices
Definition: scriptComponentSystem.h:104
This class is a wrapper for a DtCompSystem for use by scripts. It derives from DtAsciiSerializable so...
Definition: scriptComponentSystem.h:18
const DtComponentSystem * myComponentSystem
Definition: scriptComponentSystem.h:107
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)