passwd file management frontend.  
 More...
#include <keyring_frontend.h>
 | 
| enum class   | Cmd {  
  Init
, Set
, Get
, Delete
,  
  List
, Export
, MasterDelete
, MasterList
,  
  MasterRename
, ShowHelp
, ShowVersion
 
 } | 
|   | 
 | 
|   | KeyringFrontend (const std::string &exe_name, const std::vector< std::string > &args, std::istream &is=std::cin, std::ostream &os=std::cout, std::ostream &es=std::cerr) | 
|   | 
| int  | run () | 
|   | run frontend according to configuration.  More...
  | 
|   | 
| std::string  | get_help (const size_t screen_width=80) const | 
|   | get help text.  More...
  | 
|   | 
passwd file management frontend. 
 
◆ Cmd
| Enumerator | 
|---|
| Init  |  | 
| Set  |  | 
| Get  |  | 
| Delete  |  | 
| List  |  | 
| Export  |  | 
| MasterDelete  |  | 
| MasterList  |  | 
| MasterRename  |  | 
| ShowHelp  |  | 
| ShowVersion  |  | 
 
 
◆ KeyringFrontend()
      
        
          | KeyringFrontend::KeyringFrontend  | 
          ( | 
          const std::string &  | 
          exe_name,  | 
        
        
           | 
           | 
          const std::vector< std::string > &  | 
          args,  | 
        
        
           | 
           | 
          std::istream &  | 
          is = std::cin,  | 
        
        
           | 
           | 
          std::ostream &  | 
          os = std::cout,  | 
        
        
           | 
           | 
          std::ostream &  | 
          es = std::cerr  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ get_help()
      
        
          | std::string KeyringFrontend::get_help  | 
          ( | 
          const size_t  | 
          screen_width = 80 | ) | 
           const | 
        
      
 
get help text. 
- Parameters
 - 
  
    | screen_width | wraps text at screen-width  | 
  
   
- Returns
 - help text 
 
 
 
◆ get_version()
  
  
      
        
          | std::string KeyringFrontend::get_version  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
staticnoexcept   | 
  
 
 
◆ init_from_arguments()
  
  
      
        
          | void KeyringFrontend::init_from_arguments  | 
          ( | 
          const std::vector< std::string > &  | 
          arguments | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ prepare_args()
  
  
      
        
          | void KeyringFrontend::prepare_args  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
prepare arguments and cmds. 
- check command name
 
- check argument counts
 
- Exceptions
 - 
  
  
 
 
 
◆ prepare_command_options()
  
  
      
        
          | void KeyringFrontend::prepare_command_options  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ read_password()
  
  
      
        
          | std::string KeyringFrontend::read_password  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ run()
      
        
          | int KeyringFrontend::run  | 
          ( | 
           | ) | 
           | 
        
      
 
run frontend according to configuration. 
- Returns
 - exit-status 
 
- Return values
 - 
  
    | EXIT_FAILURE | on error  | 
    | EXIT_SUCCESS | on success  | 
  
   
 
 
◆ arg_handler_
◆ cerr_
  
  
      
        
          | std::ostream& KeyringFrontend::cerr_ | 
         
       
   | 
  
private   | 
  
 
 
◆ cin_
  
  
      
        
          | std::istream& KeyringFrontend::cin_ | 
         
       
   | 
  
private   | 
  
 
 
◆ config_
  
  
      
        
          | Config KeyringFrontend::config_ | 
         
       
   | 
  
private   | 
  
 
 
◆ cout_
  
  
      
        
          | std::ostream& KeyringFrontend::cout_ | 
         
       
   | 
  
private   | 
  
 
 
◆ program_name_
  
  
      
        
          | std::string KeyringFrontend::program_name_ | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: