Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ResultDataScriptObject.h
Go to the documentation of this file.
1#pragma once
4
5namespace sf
6{
7
12 : public ScriptObject
13 , public ResultData
14 , private ResultDataHandler
15{
16 public:
17 explicit ResultDataScriptObject(const Parameters& params);
18
19 std::string getStatusText() override;
20
21 protected:
22 [[nodiscard]] const IdInfo* getInfo(const std::string& name) const override;
23
24 void destroyObject(bool& should_delete) override
25 {
26 should_delete = true;
27 }
28
29 // Overloaded from base class.
30 bool getSetValue(const IdInfo* info, Value* value, Value::vector_type* params, bool flag_set) override;
31
32 private:
33 void resultDataEventHandler(EEvent event, const ResultData& data, ResultData& resultData, const Range& range, bool b) override;
34
35 // Instruction pointer to jump to on a change of ID. 0 means disabled.
36 ip_type OnId{0};
37 // Instruction pointer to jump to on a change of access range. 0 means disabled.
38 ip_type OnAccess{0};
39 // Instruction pointer to jump to on a clear event. 0 means disabled.
40 ip_type OnClear{0};
41 // Instruction pointer to jump to on a got data event. 0 means disabled.
42 ip_type OnGotRange{0};
43
44 static ScriptObject::IdInfo _info[];
45};
46
47}// namespace sf
Class to manage 64-bit integer ranges.
Definition Range.h:52
Class used to give a ResultData instance access to virtual method of a derived class.
Definition ResultDataHandler.h:12
Script object for exporting GII parameters to a script object.
Definition ResultDataScriptObject.h:15
void destroyObject(bool &should_delete) override
Asks if the object should be deleted after having made this call.
Definition ResultDataScriptObject.h:24
ResultDataScriptObject(const Parameters &params)
const IdInfo * getInfo(const std::string &name) const override
Must be overloaded for member namespace.
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.
std::string getStatusText() override
Gets the status text of this object for debugging purposes.
EEvent
Event enumerate values used in broadcasting where global events have a negative value.
Definition ResultDataTypes.h:46
Class for creating and referencing global created data called result data. This class allows linking ...
Definition ResultData.h:20
Info structure for objects used in scripts.
Definition ScriptObject.h:14
ssize_t ip_type
Instruction pointer type.
Definition ScriptObject.h:36
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
Definition Application.h:10
Used to create static lookup lists.
Definition ScriptObject.h:60
Type to pass to registered classes.
Definition ScriptObject.h:20