|
Pakman
|
#include <Command.h>
Public Member Functions | |
| Command () | |
| Command (const std::string &raw_command) | |
| Command (const char raw_command[]) | |
| Command (const Command &command) | |
| Command (Command &&command) | |
| Command & | operator= (const Command &command) |
| Command & | operator= (Command &&command) |
| ~Command () | |
| const std::string & | str () const |
| char ** | argv () const |
| bool | isExecutable () const |
A class for representing shell commands.
Commands take a raw command string and convert it to an array of command tokens using the function parse_command_tokens().
The array of command tokens, to be used in system functions such as exec(), can be accessed with the function argv().
| Command::Command | ( | ) |
Default constructor.
Definition at line 13 of file Command.cc.
| Command::Command | ( | const std::string & | raw_command | ) |
Construct from raw command string.
| raw_command | C++-style string containing raw command. |
Definition at line 18 of file Command.cc.
| Command::Command | ( | const char | raw_command[] | ) |
Construct from raw command string.
| raw_command | C-style string containing raw command. |
Definition at line 32 of file Command.cc.
| Command::Command | ( | const Command & | command | ) |
Copy constructor.
| command | source Command object. |
Definition at line 38 of file Command.cc.
| Command::Command | ( | Command && | command | ) |
Move constructor.
| command | source Command object. |
Definition at line 49 of file Command.cc.
| Command::~Command | ( | ) |
Destructor.
Definition at line 103 of file Command.cc.
| char ** Command::argv | ( | ) | const |
Definition at line 117 of file Command.cc.
| bool Command::isExecutable | ( | ) | const |
Definition at line 153 of file Command.cc.
Copy-assignment constructor.
| command | source Command object. |
Definition at line 59 of file Command.cc.
Move-assignment constructor.
| command | source Command object. |
Definition at line 81 of file Command.cc.
| const std::string & Command::str | ( | ) | const |
Definition at line 111 of file Command.cc.