-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableRow.cpp
More file actions
52 lines (40 loc) · 1.01 KB
/
TableRow.cpp
File metadata and controls
52 lines (40 loc) · 1.01 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// Created by Lenovo on 4/25/2017.
//
#include <iostream>
#include "TableRow.h"
template <class T>
TableRow<T>::TableRow(const string &rowName, const string &rowType) {
this->setRowName(rowName);
this->setRowType(rowType);
}
template <class T>
const string &TableRow<T>::getRowName() const {
return rowName;
}
template <class T>
void TableRow<T>::setRowName(const string &rowName) {
this->rowName = rowName;
}
template <class T>
const string &TableRow<T>::getRowType() const {
return rowType;
}
template <class T>
void TableRow<T>::setRowType(const string &rowType) {
this->rowType = rowType;
}
template <class T>
T* TableRow<T>::getRowValues() const {
T elements[values.size()];
for(int x = 0; x < this->values.size(); x++)
elements[x] = values.at(x);
return elements;
}
template <class T>
void TableRow<T>::setRowValue(const T rowValue) {
this->values.push_back(rowValue);
}
template class TableRow<int>;
template class TableRow<double>;
template class TableRow<string>;