-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRow.hpp
More file actions
30 lines (24 loc) · 672 Bytes
/
Row.hpp
File metadata and controls
30 lines (24 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Created by Piotrek Rybiec on 05/05/2025.
//
#ifndef ROW_H
#define ROW_H
#include <unordered_map>
#include <string>
#include "Value.hpp"
#include "CommonTypes.hpp"
class Row {
private:
ValueMap values;
public:
const Value& getValue(const std::string& column_name) const;
const Value& getValue(const Column& col) const;
void setValue(const std::string& column_name, const Value& val);
bool hasColumn(const std::string& column_name) const;
bool hasColumn(const Column& col) const;
const ValueMap& getValues() const;
int size() const;
bool empty() const;
bool removeColumn(const std::string& column_name);
};
#endif //ROW_H