Finance manager
Лабораторна робота №2 - Документація коду
Loading...
Searching...
No Matches
Exporter.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include <string>
4#include "Transaction.h"
5
18public:
23 CSVExporter(const std::string& filePath);
24
35 bool exportData(const std::vector<Transaction>& transactions);
36
37private:
38 std::string filePath;
39};
40
41
49public:
54 ExcelExporter(const std::string& filePath);
55
61 bool exportData(const std::vector<Transaction>& transactions);
62
63private:
64 std::string filePath;
65};
Оголошення класу Transaction, що представляє одну фінансову операцію.
Клас, що відповідає за експорт вектора транзакцій у CSV файл.
Definition Exporter.h:17
bool exportData(const std::vector< Transaction > &transactions)
Виконує процес експорту.
Definition Exporter.cpp:25
std::string filePath
Шлях до цільового CSV файлу.
Definition Exporter.h:38
Клас, що відповідає за експорт вектора транзакцій у Excel (.xlsx) файл.
Definition Exporter.h:48
std::string filePath
Шлях до цільового .xlsx файлу.
Definition Exporter.h:64
bool exportData(const std::vector< Transaction > &transactions)
Виконує процес експорту в Excel.
Definition Exporter.cpp:43