row.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_ROW
20 #define NAF_QUERY_ROW
21 
22 
23 #include <vector>
24 
25 #include "query/field.h"
26 #include "tools/dvalue.h"
27 
28 
29 namespace NAF
30 {
31  namespace Query
32  {
33  class Row;
34  }
35 }
36 
37 
38 class NAF::Query::Row : public std::vector<Field::Ptr>
39 {
40  public:
41  using Ptr = std::shared_ptr<Row>;
42 
43  Row();
44 
45  Field::Ptr FindField_(std::string column_name);
46  Field::Ptr AddField_(std::string column_name, Tools::DValue value);
47 };
48 
49 #endif // NAF_QUERY_ROW
Definition: row.h:39
Definition: dvalue.h:48