Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
commandLineInterface.hpp
Go to the documentation of this file.
1
9#ifndef CMD_LINE_INTERFACE
10#define CMD_LINE_INTERFACE
11
12#include <stdio.h>
13#include <string>
14#include "ANSI-color-codes.h"
15
16using namespace std;
17
26{
27private:
28 static commandLineInterface *instancePtr; //<! Pointer to the singleton instance of the class
35
36public:
44
52 {
53 if (instancePtr == NULL)
54 {
55 instancePtr = new commandLineInterface();
56 return instancePtr;
57 }
58 else
59 {
60 return instancePtr;
61 }
62 };
63
70
77 void help(string msg) const;
78
85 void error_failure(string msg) const;
86
93 void error_warning(string msg) const;
94
95private:
101 void cmd_colorStandard() const;
102
108 void cmd_colorError() const;
109
115 void cmd_colorWarning() const;
116
122 void cmd_colorHelping() const;
123};
124
125#endif // CMD_LINE_INTERFACE
This class provides a command line interface for the Paillier cryptosystem. It is a singleton class,...
Definition commandLineInterface.hpp:26
static commandLineInterface * getInstance()
This function returns the singleton instance of the class.
Definition commandLineInterface.hpp:51
void help(string msg) const
This function displays a help message to the user.
Definition commandLineInterface.cpp:57
commandLineInterface(const commandLineInterface &obj)=delete
Delete copy constructor to ensure singleton behavior.
void error_warning(string msg) const
This function displays an error message indicating a warning.
Definition commandLineInterface.cpp:30
~commandLineInterface()
Destroy the command Line Interface object.
Definition commandLineInterface.cpp:20
void error_failure(string msg) const
This function displays an error message indicating a failure.
Definition commandLineInterface.cpp:24