-
Notifications
You must be signed in to change notification settings - Fork 1
/
DataFilter.h
35 lines (24 loc) · 985 Bytes
/
DataFilter.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
//
// Created by n on 2022-01-14.
//
#ifndef FILTER_NAMES_DATAFILTER_H
#define FILTER_NAMES_DATAFILTER_H
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
class DataFilter {
private:
const std::string &input_file_name_;
const std::string &delim_after_;
// long lines_found_count_{0};
// long delim_after_count_{0};
public:
DataFilter(const std::string &inputFileName, const std::string &delimAfter) : input_file_name_(inputFileName),
delim_after_(delimAfter) {}
std::vector<std::string> filter_by_delimiter() const;
std::vector<std::string> filter_by_delimiter(const std::string &input_file_name, const std::string &delim_after) const;
std::vector<std::string> filter_by_delimiter_verbose() const;
long count_occurences(const std::string &input_file_name, const std::string &delim_after) const;
};
#endif //FILTER_NAMES_DATAFILTER_H