apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

private-cmndline.h File Reference
#include <apt-pkg/cmndline.h>
#include <apt-pkg/macros.h>
#include <vector>
Include dependency graph for private-cmndline.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  aptDispatchWithHelp
 

Enumerations

enum class  APT_CMD {
  APT , APT_GET , APT_CACHE , APT_CDROM ,
  APT_CONFIG , APT_EXTRACTTEMPLATES , APT_FTPARCHIVE , APT_HELPER ,
  APT_INTERNAL_SOLVER , APT_MARK , APT_SORTPKG , APT_DUMP_SOLVER ,
  APT_INTERNAL_PLANNER , RRED
}
 

Functions

APT_PUBLIC std::vector< CommandLine::DispatchParseCommandLine (CommandLine &CmdL, APT_CMD const Binary, Configuration *const *const Cnf, pkgSystem **const Sys, int const argc, const char *argv[], bool(*ShowHelp)(CommandLine &), std::vector< aptDispatchWithHelp >(*GetCommands)(void))
 
APT_PUBLIC unsigned short DispatchCommandLine (CommandLine &CmdL, std::vector< CommandLine::Dispatch > const &Cmds)
 
APT_PUBLIC std::vector< CommandLine::ArgsgetCommandArgs (APT_CMD const Program, char const *const Cmd)
 

Enumeration Type Documentation

◆ APT_CMD

enum class APT_CMD
strong
Enumerator
APT 
APT_GET 
APT_CACHE 
APT_CDROM 
APT_CONFIG 
APT_EXTRACTTEMPLATES 
APT_FTPARCHIVE 
APT_HELPER 
APT_INTERNAL_SOLVER 
APT_MARK 
APT_SORTPKG 
APT_DUMP_SOLVER 
APT_INTERNAL_PLANNER 
RRED 

Definition at line 12 of file private-cmndline.h.

Function Documentation

◆ DispatchCommandLine()

APT_PUBLIC unsigned short DispatchCommandLine ( CommandLine CmdL,
std::vector< CommandLine::Dispatch > const &  Cmds 
)

Definition at line 583 of file private-cmndline.cc.

References _config, GlobalError::DEBUG, CommandLine::DispatchArg(), and Configuration::FindI().

Referenced by main().

◆ getCommandArgs()

◆ ParseCommandLine()

APT_PUBLIC std::vector<CommandLine::Dispatch> ParseCommandLine ( CommandLine CmdL,
APT_CMD const  Binary,
Configuration *const *const  Cnf,
pkgSystem **const  Sys,
int const  argc,
const char *  argv[],
bool(*)(CommandLine &)  ShowHelp,
std::vector< aptDispatchWithHelp >(*)(void)  GetCommands 
)

Definition at line 515 of file private-cmndline.cc.

References BinarySpecificConfiguration(), GetCommands(), InitLocale(), and pkgInitConfig().

Referenced by main().