Loading...
Searching...
No Matches
results.h
1/*
2 * <one line to give the program's name and a brief idea of what it does.>
3 * Copyright (C) 2023 Jose F Rivas C <josefelixrc7@gmail.com>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef NAF_QUERY_RESULTS
20#define NAF_QUERY_RESULTS
21
22
23#include <vector>
24
25#include "query/row.h"
26
27
28namespace NAF
29{
30 namespace Query
31 {
32 class Results;
33 }
34}
35
36
37class NAF::Query::Results : public std::vector<Row::Ptr>
38{
39 public:
40 using Ptr = std::shared_ptr<Results>;
41
42 Results();
43
44 Field::Ptr First_();
45 Field::Ptr Last_();
46 Field::Ptr ExtractField_(std::size_t row, std::size_t column);
47 Field::Ptr ExtractField_(Field::Position& field_position);
48 Row::Ptr AddRow_();
49};
50
51#endif // NAF_QUERY_RESULTS
Definition results.h:38
Definition field.h:43