arguments(3)
NAME
Arguments - parsing and data representation of command-line arguments
SYNOPSIS
#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 static const int NoCompression = 0 static const EncryptionAlgorithm Default_EncAlgo static const EncryptionMode Default_EncMode static const bool Default_Checksum = true static const int Default_Compression = 9 static const bool Default_EmbedEmbFn = true static const bool Default_Force = false static const VERBOSITY Default_Verbosity = NORMAL static const unsigned long Default_Radius = 0 static const unsigned int Max_Algorithm = 3 static float Default_Goal static const DEBUGCOMMAND Default_DebugCommand = NONE static const bool Default_Check = false static const unsigned int Default_DebugLevel = 0 static const unsigned int Default_GmlGraphRecDepth = 0 static const unsigned int Default_GmlStartVertex = 0
Member Typedef Documentation
typedef std::vector<std::string>::const_iterator Arguments::ArgIt [private]
Constructor & Destructor Documentation
- Arguments::Arguments (void) [inline] Arguments::Arguments (int argc, char * argv[])
- initialize this Arguments object with argc and argv
Member Function Documentation
- void Arguments::parse (void)
- parse Argc and Argv filling the Arg* member variable for later access
- bool Arguments::stdin_isused (void) const
- is standard input used ? - according to the given arguments
- std::string Arguments::getPassphrase (bool doublecheck = false) void Arguments::parse_Command (ArgIt & curarg) [private]
- 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). - bool Arguments::parse_EmbFn (ArgIt & curarg) [private]
- test if curarg points to an emb filename argument and if yes: parse it
- Returns:
true iff one or more arguments have been parsed
- bool Arguments::parse_ExtFn (ArgIt & curarg) [private] bool Arguments::parse_CvrFn (ArgIt & curarg) [private] bool Arguments::parse_StgFn (ArgIt & curarg) [private] bool Arguments::parse_Passphrase (ArgIt & curarg) [private] bool Arguments::parse_Checksum (ArgIt & curarg) [private] bool Arguments::parse_Compression (ArgIt & curarg) [private] bool Arguments::parse_EmbedEmbFn (ArgIt & curarg) [private] bool Arguments::parse_Encryption (ArgIt & curarg) [private] bool Arguments::parse_Radius (ArgIt & curarg) [private] bool Arguments::parse_Goal (ArgIt & curarg) [private] bool Arguments::parse_Force (ArgIt & curarg) [private] bool Arguments::parse_Verbosity (ArgIt & curarg) [private] bool Arguments::parse_Debug (ArgIt & curarg) [private] void Arguments::setDefaults (void) [private]
Member Data Documentation
- ArgCommand Arguments::Command
std::string Arguments::CommandString
ArgString Arguments::EmbFn
ArgString Arguments::ExtFn
ArgString Arguments::CvrFn
ArgString Arguments::StgFn
ArgString Arguments::Passphrase
ArgBool Arguments::Checksum
ArgInt Arguments::Compression
ArgBool Arguments::EmbedEmbFn
ArgEncAlgo Arguments::EncAlgo
ArgEncMode Arguments::EncMode
ArgULong Arguments::Radius
ArgFloat Arguments::Goal
ArgBool Arguments::Force
ArgVerbosity Arguments::Verbosity ArgDebugCommand Arguments::DebugCommand ArgBool Arguments::Check
ArgStringList Arguments::FileList ArgUInt Arguments::DebugLevel ArgUInt Arguments::GmlGraphRecDepth ArgUInt Arguments::GmlStartVertex const int Arguments::NoCompression = 0 [static, private] const EncryptionAlgorithm Arguments::Default_EncAlgo [static, private] const EncryptionMode Arguments::Default_EncMode [static, private] const bool Arguments::Default_Checksum = true [static, private] const int Arguments::Default_Compression = 9 [static, private] const bool Arguments::Default_EmbedEmbFn = true [static, private] const bool Arguments::Default_Force = false [static, private] const VERBOSITY Arguments::Default_Verbosity = NORMAL [static, private] const unsigned long Arguments::Default_Radius = 0 [static, private] const unsigned int Arguments::Max_Algorithm = 3 [static, private] float Arguments::Default_Goal [static, private] const DEBUGCOMMAND Arguments::Default_DebugCommand = NONE [static, private] const bool Arguments::Default_Check = false [static, private] const unsigned int Arguments::Default_DebugLevel = 0 [static, private] const unsigned int Arguments::Default_GmlGraphRecDepth = 0 [static, - private]
- const unsigned int Arguments::Default_GmlStartVertex = 0 [static, private] std::vector<std::string> Arguments::TheArguments [private]
Author
- Generated automatically by Doxygen for steghide from the source code.