-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.h
38 lines (30 loc) · 1.01 KB
/
parameters.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
/**
* @file parameters.h
* @brief Header file for parameter handling functions.
*/
#ifndef PARAMETERS_H
#define PARAMETERS_H
#include <string>
/**
* @brief CompressionParams structure representing compression/decompression parameters.
*/
struct CompressionParams
{
std::string inputFileName; /** @brief Input file name.*/
std::string outputFileName; /** @brief Output file name.*/
std::string mode; /** @brief Program mode (compression/decompression).*/
int inputBufferSize{}; /** @brief Input buffer size.*/
int historyBufferSize{}; /** @brief History buffer size.*/
};
/**
* @brief Function printInstructions() prints program usage instructions.
*/
void printInstructions();
/**
* @brief Function parseCommandLine() parses parameters from the command line.
* @param argc Number of parameters.
* @param argv Array of parameters.
* @return Returns a CompressionParams structure with the parsed parameters.
*/
CompressionParams parseCommandLine(int argc, char *argv[]);
#endif // PARAMETERS_H