IRow.h
1/* Copyright (C) 2006-2026 by Tommi Maekitalo
2 Copyright (C) 2006-2026 by Marc Boris Duerner
3 SPDX-License-Identifier: LGPL-2.1-or-later WITH mif-exception
4*/
5
6#ifndef PT_DB_IROW_H
7#define PT_DB_IROW_H
8
9#include <Pt/RefCounted.h>
10#include <Pt/Db/Api.h>
11#include <cstddef>
12
13namespace Pt {
14
15namespace Db {
16
17 class Value;
18
21 class PT_DB_API IRow : public RefCounted
22 {
23 public:
24 typedef std::size_t size_type;
25
28 virtual size_type size() const = 0;
29
32 virtual Value getValue(size_type field_num) const = 0;
33 };
34
35} // namespace Db
36
37} // namespace Pt
38
39#endif // PTV_DB_IROW_H
Database-row backend.
Definition IRow.h:22
virtual size_type size() const =0
Returns the number of columns.
virtual Value getValue(size_type field_num) const =0
Returns the value at field_num.
One column value of a query result.
Definition Value.h:35
Portable SQL database access.
Core module.
Definition Allocator.h:33