Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
VariableIdList.h
Go to the documentation of this file.
1#pragma once
2#if IS_QT
3 #include <QByteArray>
4#endif
5#include "InformationIds.h"
6#include <gii/gen/Variable.h>
7#include <gii/global.h>
8
9namespace sf
10{
11
16{
17 public:
18#if IS_QT
22 using InformationIds::operator!=;
23 using InformationIds::operator=;
24 using TTypedList::operator=;
25
26#endif
31
36 explicit VariableIdList(const Variable::PtrVector& list);
37
42 explicit VariableIdList(const Variable::Vector& list);
43
47 index_type size() const override;
48
53 void setTemporary(bool);
54
59 void setGlobal(bool);
60
61 protected:
65 value_type store(index_type index, const value_type* value) override;
66
67 private:
68 const Variable::PtrVector* _ptrList{nullptr};
69 const Variable::Vector* _list{nullptr};
70 bool _global{true};
71 bool _temporary{false};
72};
73
74}// namespace sf
Abstract class to store information id's in a configuration string. Used to be implemented twice,...
Definition InformationIds.h:13
TVector< InformationBase * > Vector
Vector for containing different information base derived classes.
Definition InformationBase.h:58
InformationTypes::id_type value_type
Type of the stored values.
Definition TTypedList.h:24
ssize_t index_type
Type of the indices used by this class.
Definition TTypedList.h:23
Class handling.
Definition VariableIdList.h:16
void setGlobal(bool)
Makes existing variables global or not. New created sf::Variable instances are set accordingly.
VariableIdList(const Variable::PtrVector &list)
Constructor assigning a Variable pointer typed vector.
void setTemporary(bool)
Makes existing variables have temporary values. New created sf::Variable instances are set accordingl...
index_type size() const override
Gets the size of the underlying store.
InformationIds Inherited
For referencing types from the base class.
Definition VariableIdList.h:30
value_type store(index_type index, const value_type *value) override
Overridden from base class to handel read and writes of values.
VariableIdList(const Variable::Vector &list)
Constructor assigning a Variable typed vector.
#define _GII_CLASS
Definition gii/global.h:38
Definition Application.h:10