Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
InformationIds.h
Go to the documentation of this file.
1#pragma once
2#include "InformationBase.h"
3#include <gii/global.h>
5
6namespace sf
7{
12class _GII_CLASS InformationIds : public TTypedList<InformationTypes::id_type>
13{
14 public:
15 using TTypedList::TTypedList;
16
21
22#if IS_QT
26 operator QByteArray() const
27 {
28 return QByteArray::fromStdString(toString());
29 }
30
34 InformationIds& operator=(const QByteArray& ba)
35 {
36 fromString(ba.toStdString());
37 return *this;
38 }
39
43 bool operator!=(const QByteArray& ba) const
44 {
45 return toString() != ba.toStdString();
46 }
47#endif
48};
49
54
55}// namespace sf
Abstract class to store information id's in a configuration string. Used to be implemented twice,...
Definition InformationIds.h:13
InformationIds()
Default constructor setting the use of hexadecimals by default.
Definition InformationIds.h:50
Interface class for managing an indexed lists. Sends out events when about to change and when changed...
Definition TTypedList.h:21
void setHexadecimal(bool flag)
Enables integral types as hexadecimals in the string from toString() function.
#define _GII_CLASS
Definition gii/global.h:38
Definition Application.h:10
void fromString(T &list, const std::string &str, const std::string &separator={})
Converts a string into a typed list.
std::string toString(T value, int digits=0)
The function converts number to a minimal length. It produces 'digits' significant digits in either p...