Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
commandLineInterface Class Reference

This class provides a command line interface for the Paillier cryptosystem. It is a singleton class, meaning that only one instance of it can exist at a time. More...

#include <commandLineInterface.hpp>

Public Member Functions

 commandLineInterface (const commandLineInterface &obj)=delete
 Delete copy constructor to ensure singleton behavior.
 
 ~commandLineInterface ()
 Destroy the command Line Interface object.
 
void help (string msg) const
 This function displays a help message to the user.
 
void error_failure (string msg) const
 This function displays an error message indicating a failure.
 
void error_warning (string msg) const
 This function displays an error message indicating a warning.
 

Static Public Member Functions

static commandLineInterfacegetInstance ()
 This function returns the singleton instance of the class.
 

Detailed Description

This class provides a command line interface for the Paillier cryptosystem. It is a singleton class, meaning that only one instance of it can exist at a time.

Author
Katia Auxilien
Date
21 mai 2024, 16:37:00

Constructor & Destructor Documentation

◆ commandLineInterface()

commandLineInterface::commandLineInterface ( const commandLineInterface & obj)
delete

Delete copy constructor to ensure singleton behavior.

Parameters
objObj to construct.
Author
Katia Auxilien
Date
21 mai 2024, 16:37:00

◆ ~commandLineInterface()

commandLineInterface::~commandLineInterface ( )

Destroy the command Line Interface object.

Author
Katia Auxilien
Date
07 June 2024 16:47:00

Member Function Documentation

◆ error_failure()

void commandLineInterface::error_failure ( string msg) const

This function displays an error message indicating a failure.

Parameters
msgThe error message to be displayed.
Authors
Katia Auxilien
Date
28 May 2024 15:33:00

◆ error_warning()

void commandLineInterface::error_warning ( string msg) const

This function displays an error message indicating a warning.

Parameters
msgThe error message to be displayed.
Authors
Katia Auxilien
Date
28 May 2024 15:33:00

◆ getInstance()

static commandLineInterface * commandLineInterface::getInstance ( )
inlinestatic

This function returns the singleton instance of the class.

Returns
commandLineInterface* Pointer to the singleton instance of the class.
Author
Katia Auxilien
Date
21 mai 2024, 16:37:00

◆ help()

void commandLineInterface::help ( string msg) const

This function displays a help message to the user.

Parameters
msgThe message to be displayed.
Author
Katia Auxilien
Date
07 June 2024 16:47:00