Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ScriptGlobalObject.h
Go to the documentation of this file.
1#pragma once
3#include <misc/gen/Value.h>
4#include <misc/global.h>
5
6namespace sf
7{
8
13{
14 public:
16
17 [[nodiscard]] const IdInfo* getInfo(const std::string& name) const override;
18
19 bool getSetValue(const IdInfo* info, Value* value, Value::vector_type* params, bool flag_set) override;
20
21 protected:
22 void destroyObject(bool& should_delete) override;
23
24 private:
28 IdInfo _globalIdInfo{};
29
30 static IdInfo _objectInfo[];
31};
32
33}// namespace sf
Base class for a script to implementing.
Definition ScriptGlobalObject.h:13
void destroyObject(bool &should_delete) override
Asks if the object should be deleted after having made this call.
bool getSetValue(const IdInfo *info, Value *value, Value::vector_type *params, bool flag_set) override
Gets or sets the passed data member. Must be overloaded in derived class.
ScriptGlobalObject(const Parameters &)
const IdInfo * getInfo(const std::string &name) const override
Must be overloaded for member namespace.
Info structure for objects used in scripts.
Definition ScriptObject.h:14
Counted vector having additional methods and operators for ease of usage.
Definition TVector.h:25
Value container class able to performing arithmetic functions.
Definition Value.h:19
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10
Used to create static lookup lists.
Definition ScriptObject.h:60
Type to pass to registered classes.
Definition ScriptObject.h:20