Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
FileFindObject.h
Go to the documentation of this file.
1#pragma once
2
4#include <QDirIterator>
5
6namespace sf
7{
8
10{
11 public:
12
13 // Constructor.
14 explicit FileFindObject(const Parameters&)
15 :ScriptObject("FileFind")
16 {
17 }
18
19 [[nodiscard]] const IdInfo* getInfo(const std::string& name) const override;
20
21 bool getSetValue(const IdInfo* info, Value* value, Value::vector_type* params, bool flag_set) override;
22
23 void destroyObject(bool& should_delete) override
24 {
25 should_delete = false;
26 }
27
28 QScopedPointer<QDirIterator> _dirIterator;
29
31};
32
33}
Definition FileFindObject.h:10
const IdInfo * getInfo(const std::string &name) const override
Must be overloaded for member namespace.
QScopedPointer< QDirIterator > _dirIterator
Definition FileFindObject.h:28
FileFindObject(const Parameters &)
Definition FileFindObject.h:14
static IdInfo _objectInfo[]
Definition FileFindObject.h:30
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.
void destroyObject(bool &should_delete) override
Asks if the object should be deleted after having made this call.
Definition FileFindObject.h:23
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
Definition Application.h:10
Used to create static lookup lists.
Definition ScriptObject.h:60
Type to pass to registered classes.
Definition ScriptObject.h:20