#include <Arguments.h>
Public Member Functions | |
| Arguments (void) | |
| Arguments (int argc, char *argv[]) | |
| void | parse (void) |
| bool | stdin_isused (void) const |
| std::string | getPassphrase (bool doublecheck=false) |
Public Attributes | |
| ArgCommand | Command |
| the command to be executed in this session | |
| std::string | CommandString |
| the name of the command to be executed in this session (as supplied by the user) | |
| ArgString | EmbFn |
| the embed file name, "" if stdin | |
| ArgString | ExtFn |
| the extract file name, "" if stdout | |
| ArgString | CvrFn |
| the cover file name, "" if stdin | |
| ArgString | StgFn |
| the stego file name, "" if stdout/stdin | |
| ArgString | Passphrase |
| ArgBool | Checksum |
| ArgInt | Compression |
| ArgBool | EmbedEmbFn |
| ArgEncAlgo | EncAlgo |
| ArgEncMode | EncMode |
| ArgULong | Radius |
| ArgFloat | Goal |
| ArgBool | Force |
| ArgVerbosity | Verbosity |
| ArgDebugCommand | DebugCommand |
| ArgBool | Check |
| ArgStringList | FileList |
| ArgUInt | DebugLevel |
| ArgUInt | GmlGraphRecDepth |
| ArgUInt | GmlStartVertex |
Private Types | |
| typedef std::vector< std::string >::const_iterator | ArgIt |
Private Member Functions | |
| void | parse_Command (ArgIt &curarg) |
| bool | parse_EmbFn (ArgIt &curarg) |
| bool | parse_ExtFn (ArgIt &curarg) |
| bool | parse_CvrFn (ArgIt &curarg) |
| bool | parse_StgFn (ArgIt &curarg) |
| bool | parse_Passphrase (ArgIt &curarg) |
| bool | parse_Checksum (ArgIt &curarg) |
| bool | parse_Compression (ArgIt &curarg) |
| bool | parse_EmbedEmbFn (ArgIt &curarg) |
| bool | parse_Encryption (ArgIt &curarg) |
| bool | parse_Radius (ArgIt &curarg) |
| bool | parse_Goal (ArgIt &curarg) |
| bool | parse_Force (ArgIt &curarg) |
| bool | parse_Verbosity (ArgIt &curarg) |
| bool | parse_Debug (ArgIt &curarg) |
| void | setDefaults (void) |
Private Attributes | |
| std::vector< std::string > | TheArguments |
Static Private Attributes | |
| const int | NoCompression = 0 |
| const EncryptionAlgorithm | Default_EncAlgo = EncryptionAlgorithm (EncryptionAlgorithm::NONE) |
| const EncryptionMode | Default_EncMode = EncryptionMode (EncryptionMode::ECB) |
| const bool | Default_Checksum = true |
| const int | Default_Compression = 9 |
| const bool | Default_EmbedEmbFn = true |
| const bool | Default_Force = false |
| const VERBOSITY | Default_Verbosity = NORMAL |
| const unsigned long | Default_Radius = 0 |
| const unsigned int | Max_Algorithm = 3 |
| const float | Default_Goal = 100.0 |
| const DEBUGCOMMAND | Default_DebugCommand = NONE |
| const bool | Default_Check = false |
| const unsigned int | Default_DebugLevel = 0 |
| const unsigned int | Default_GmlGraphRecDepth = 0 |
| const unsigned int | Default_GmlStartVertex = 0 |
|
|
|
|
|
|
|
||||||||||||
|
initialize this Arguments object with argc and argv |
|
|
|
|
|
parse Argc and Argv filling the Arg* member variable for later access |
|
|
|
|
|
parse the command Note: parse_Command is the only parse_* function that requires curarg to be a command. (because the command is the only argument with a fixed position). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test if curarg points to an emb filename argument and if yes: parse it
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
is standard input used ? - according to the given arguments |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.7