Skip to content

Commit 42ce98c

Browse files
committed
feat: implemented BitcoinExchange class to process Bitcoin exchange rate data
1 parent 671648d commit 42ce98c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

ex00/BitcoinExchange.hpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#pragma once
2+
3+
#include <iostream>
4+
#include <map>
5+
#include <algorithm>
6+
#include <fstream>
7+
#include <sstream>
8+
#include <exception>
9+
10+
class BitcoinExchange
11+
{
12+
private:
13+
std::map<std::string, double> priceData;
14+
15+
16+
public:
17+
BitcoinExchange();
18+
~BitcoinExchange();
19+
BitcoinExchange(const BitcoinExchange &other);
20+
BitcoinExchange &operator=(const BitcoinExchange &other);
21+
22+
bool loadDatabase(const std::string& filename);
23+
void processInputFile(const std::string& filename);
24+
void processArgsAndFiles(int ac, char **av);
25+
26+
};

0 commit comments

Comments
 (0)