ewmscp  ..
Public Member Functions | Public Attributes | List of all members
libsshCommon::sshOptions Class Reference

#include <libsshCommon.h>

Collaboration diagram for libsshCommon::sshOptions:
[legend]

Public Member Functions

 sshOptions (const std::string &optPrefix)
 

Public Attributes

options::single< std::string > host
 
options::single< std::string > knownHostFile
 
options::single< std::string > configFile
 
options::single< std::string > verbosity
 

Detailed Description

Definition at line 30 of file libsshCommon.h.

Constructor & Destructor Documentation

◆ sshOptions()

libsshCommon::sshOptions::sshOptions ( const std::string &  optPrefix)

Definition at line 26 of file libsshCommon.cpp.

26  :
27  host('\0', optPrefix + "_host",
28  "host to connect to"),
29  knownHostFile('\0', optPrefix + "_knownHosts",
30  "known hosts file to use"),
31  configFile('\0', optPrefix + "_config",
32  "path to ssh config file"),
33  verbosity('\0', optPrefix + "_verbosity",
34  "libssh verbosity", "SSH_LOG_NOLOG") {
35  verbosity.fAddToRange("SSH_LOG_NOLOG");
36  verbosity.fAddToRange("SSH_LOG_WARNING");
37  verbosity.fAddToRange("SSH_LOG_PROTOCOL");
38  verbosity.fAddToRange("SSH_LOG_PACKET");
39  verbosity.fAddToRange("SSH_LOG_FUNCTIONS");
40 };

References options::internal::typed_base< T, forceRangeValueTypeString >::fAddToRange(), and verbosity.

Here is the call graph for this function:

Member Data Documentation

◆ configFile

options::single<std::string> libsshCommon::sshOptions::configFile

Definition at line 35 of file libsshCommon.h.

Referenced by libsshCommon::openSessions().

◆ host

options::single<std::string> libsshCommon::sshOptions::host

Definition at line 33 of file libsshCommon.h.

Referenced by libsshCommon::openSessions().

◆ knownHostFile

options::single<std::string> libsshCommon::sshOptions::knownHostFile

Definition at line 34 of file libsshCommon.h.

Referenced by libsshCommon::openSessions().

◆ verbosity

options::single<std::string> libsshCommon::sshOptions::verbosity

Definition at line 36 of file libsshCommon.h.

Referenced by libsshCommon::openSessions(), and sshOptions().


The documentation for this class was generated from the following files:
options::internal::typed_base::fAddToRange
virtual void fAddToRange(rangeValueType aValue)
add a value to the range of allowed values
Definition: Options.h:458
libsshCommon::sshOptions::knownHostFile
options::single< std::string > knownHostFile
Definition: libsshCommon.h:34
libsshCommon::sshOptions::verbosity
options::single< std::string > verbosity
Definition: libsshCommon.h:36
libsshCommon::sshOptions::configFile
options::single< std::string > configFile
Definition: libsshCommon.h:35
libsshCommon::sshOptions::host
options::single< std::string > host
Definition: libsshCommon.h:33