-
Notifications
You must be signed in to change notification settings - Fork 0
/
Column.h
50 lines (35 loc) · 1.02 KB
/
Column.h
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
49
50
//
// Created by Christo on 3/5/2019.
//
#ifndef MONRAZD_COLUMN_H
#define MONRAZD_COLUMN_H
#pragma once
#include "DataType.h"
#include <map>
#include <string>
#include <fstream>
#include <vector>
#include <iostream>
#include "globalFunction.h"
class Column {
protected:
std::string description;
std:: string columnFilePath;
std::fstream columnFile;
std::string columnName;
DataType dataType;
public:
const std::fstream &getColumnFile() const;
std::vector<std::string> columnInfoVector;
Column(std::string columnName,std::string tableName );
Column(std::string columnName,std::string tableName, std::string description);
Column(std::string columnFilePath);
DataType getType();
virtual void addData(std::string);
void refreshColumnInfo();
std::string getDataAt(int i);
std::string getColumnName(bool withoutSignature);
virtual std::string calSum();
std::string getColumnFilePath();
};
#endif //MONRAZD_COLUMN_H