Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
dbaddresskey.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2025 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8
9#ifndef DBADDRESSKEY_H
10#define DBADDRESSKEY_H
11#include "abstractkey.h"
12#include "dbaddress.h"
13
14namespace QH {
15
19class HEARTSHARED_EXPORT DbAddressKey: public DbAddress, public AbstractKey
20{
21public:
23 DbAddressKey(const DbAddress& address);
24
30 DbAddressKey(const QString& table, const QVariant& value);
31
32 unsigned int hash() const override;
33
34 bool equal(const AbstractKey *other) const override;
35
36 bool isValid() const override;
37
38 QString toString() const override;
39
40};
41}
42#endif // DBADDRESSKEY_H
AbstractKey()=default
QString toString() const override
toString This method should be return the string implementation of this key.
unsigned int hash() const override
hash This method must be calc hash int32 code of source object.
bool equal(const AbstractKey *other) const override
equal This method must be make compare between current object and other.
bool isValid() const override
isValid This method check this key object to valid.
DbAddress()=default
const QString & table() const
table This method return table name.
Definition dbaddress.cpp:58
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13