#include <app/BCommand.h>
Inheritance diagram for BCommand:
Public Member Functions | |
FILE * | __sF (int which) const |
virtual void | AddCommand (const SString &name, const sptr< ICommand > &command) |
sptr< IBinder > | ArgToBinder (const SValue &arg) const |
Given an argument value, convert it to an object. | |
SString | ArgToPath (const SValue &arg) const |
Given an argument value, convert it to an absolute path. | |
BCommand (const SContext &context) | |
BCommand () | |
virtual sptr< IByteOutput > | ByteError () const |
virtual sptr< IByteInput > | ByteInput () const |
virtual sptr< IByteOutput > | ByteOutput () const |
virtual sptr< ICommand > | Clone () const |
SString | CurDir () const |
int32_t | CurrentPropertySequence () const |
virtual SString | Documentation () const |
Retrieve a short description of the command. | |
virtual SValue | Environment () const |
bool | GetColorFlag () const |
virtual sptr< ICommand > | GetCommand (const SString &name) const |
bool | GetEchoFlag () const |
const char * | getenv (const char *key) const |
virtual SValue | GetProperty (const SValue &key) const |
bool | GetTraceFlag () const |
int | putenv (const char *string) |
virtual void | RemoveCommand (const SString &name) |
virtual void | RemoveProperty (const SValue &key) |
virtual SValue | Run (const ArgList &args)=0 |
virtual void | SetByteError (const sptr< IByteOutput > &error) |
virtual void | SetByteInput (const sptr< IByteInput > &input) |
virtual void | SetByteOutput (const sptr< IByteOutput > &output) |
int | setenv (const char *name, const char *value, int rewrite) |
virtual void | SetEnvironment (const SValue &env) |
virtual void | SetFileDescriptors (const SValue &fds) |
virtual void | SetProperty (const SValue &key, const SValue &value) |
virtual sptr< ICommand > | Spawn (const SString &command) const |
sptr< ICommand > | SpawnCustom (const SString &command, const SContext &context, const sptr< IProcess > &team) const |
int | system (const char *cmd) |
sptr< ITextOutput > | TextError () |
sptr< ITextInput > | TextInput () |
sptr< ITextOutput > | TextOutput () |
void | unsetenv (const char *name) |
Protected Member Functions | |
virtual | ~BCommand () |
|
|
|
|
|
|
|
|
|
Implements ICommand. |
|
Given an argument value, convert it to an object. If the SValue contains an object, the binder is returned directly. Otherwise, if it is a string, this is taken as a path and looked up in the context. |
|
Given an argument value, convert it to an absolute path. If the SValue contains a string, it is appended to the PWD and returned. Otherwise, "" is returned. |
|
Implements ICommand. |
|
Implements ICommand. |
|
Implements ICommand. |
|
|
|
|
|
|
|
Retrieve a short description of the command. (Here's one we stole from Python.) Every command may optionally have a documentation property. This can be retrieved at runtime to provide detailed help on any command. Shell users everywhere rejoice! Implements ICommand. |
|
Implements ICommand. |
|
|
|
Implements ICommand. |
|
|
|
|
|
Implements ICommand. |
|
|
|
|
|
Implements ICommand. |
|
Implements ICommand. |
|
Implemented in BUnixCommand. |
|
Implements ICommand. |
|
Implements ICommand. |
|
Implements ICommand. |
|
|
|
Implements ICommand. |
|
Implements ICommand. |
|
Implements ICommand. |
|
Implements ICommand. |
|
|
|
|
|
|
|
|
|
|
|
|