class Command

Defined at line 33 of file ../../src/developer/debug/zxdb/console/command.h

Command ---------------------------------------------------------------------

Public Members

static const int kNoIndex
static const int kWildcard

Public Methods

void Command ()

Defined at line 34 of file ../../src/developer/debug/zxdb/console/command.cc

void ~Command ()

Defined at line 35 of file ../../src/developer/debug/zxdb/console/command.cc

bool HasNoun (Noun noun)

Returns true if the noun was specified by the user.

Defined at line 37 of file ../../src/developer/debug/zxdb/console/command.cc

int GetNounIndex (Noun noun)

Returns the index specified for the given noun. If the noun was not

specified or the index was not specified, returns kNoIndex (use HasNoun to

disambiguate).

Defined at line 39 of file ../../src/developer/debug/zxdb/console/command.cc

void SetNoun (Noun noun, int index)

Sets that the given noun was present. index may be kNoIndex.

Defined at line 46 of file ../../src/developer/debug/zxdb/console/command.cc

Err ValidateNouns (std::initializer_list<Noun> allowed_nouns, bool allow_wildcard)

Checks the specified nouns against the parameter listing the allowed ones.

If any nouns are specified that are not in the list, generates an error and

returns it. If |allow_wildcard| is false, and a wildcard specifier is

present, will generate an appropriate error message. Otherwise it will

return an empty error.

Defined at line 51 of file ../../src/developer/debug/zxdb/console/command.cc

const std::map<Noun, int> & nouns ()

Defined at line 58 of file ../../src/developer/debug/zxdb/console/command.h

bool HasSwitch (int id)

Returns whether a given switch was specified.

Defined at line 63 of file ../../src/developer/debug/zxdb/console/command.cc

std::string GetSwitchValue (int id)

Returns the value corresponding to the given switch, or the empty string

if not specified.

Defined at line 65 of file ../../src/developer/debug/zxdb/console/command.cc

Verb verb ()

Defined at line 67 of file ../../src/developer/debug/zxdb/console/command.h

void set_verb (Verb v)

Defined at line 68 of file ../../src/developer/debug/zxdb/console/command.h

void SetSwitch (int id, std::string str)

Defined at line 72 of file ../../src/developer/debug/zxdb/console/command.cc

CommandReport BuildReport ()

Defined at line 74 of file ../../src/developer/debug/zxdb/console/command.cc

const std::map<int, std::string> & switches ()

Defined at line 79 of file ../../src/developer/debug/zxdb/console/command.h

const std::vector<std::string> & args ()

Defined at line 81 of file ../../src/developer/debug/zxdb/console/command.h

void set_args (std::vector<std::string> a)

Defined at line 82 of file ../../src/developer/debug/zxdb/console/command.h

Frame * frame ()

The computed environment for the command. This is filled in with the

objects corresponding to the indices given on the command line, and

default to the current one for the current command line.

If |HasNoun()| returns true, the corresponding getter here is guaranteed to

be non-null or have size() > 0. Most commands are interacting with a single

noun, so there are convenience getters for when only a single object is

needed/expected. These will only work when there is exactly one instance of

that noun associated with this command.

Defined at line 93 of file ../../src/developer/debug/zxdb/console/command.h

const std::vector<Frame *> & all_frames ()

Defined at line 94 of file ../../src/developer/debug/zxdb/console/command.h

void add_frame (Frame * f)

Defined at line 95 of file ../../src/developer/debug/zxdb/console/command.h

Target * target ()

Defined at line 96 of file ../../src/developer/debug/zxdb/console/command.h

const std::vector<Target *> & all_targets ()

Defined at line 101 of file ../../src/developer/debug/zxdb/console/command.h

void add_target (Target * t)

Defined at line 102 of file ../../src/developer/debug/zxdb/console/command.h

Thread * thread ()

Defined at line 103 of file ../../src/developer/debug/zxdb/console/command.h

const std::vector<Thread *> & all_threads ()

Defined at line 104 of file ../../src/developer/debug/zxdb/console/command.h

void add_thread (Thread * t)

Defined at line 105 of file ../../src/developer/debug/zxdb/console/command.h

Breakpoint * breakpoint ()

Defined at line 106 of file ../../src/developer/debug/zxdb/console/command.h

const std::vector<Breakpoint *> & all_breakpoints ()

Defined at line 107 of file ../../src/developer/debug/zxdb/console/command.h

void add_breakpoint (Breakpoint * b)

Defined at line 108 of file ../../src/developer/debug/zxdb/console/command.h

Filter * filter ()

Defined at line 109 of file ../../src/developer/debug/zxdb/console/command.h

const std::vector<Filter *> & all_filters ()

Defined at line 110 of file ../../src/developer/debug/zxdb/console/command.h

void add_filter (Filter * f)

Defined at line 111 of file ../../src/developer/debug/zxdb/console/command.h

SymbolServer * sym_server ()

Defined at line 112 of file ../../src/developer/debug/zxdb/console/command.h

const std::vector<SymbolServer *> & all_sym_servers ()

Defined at line 115 of file ../../src/developer/debug/zxdb/console/command.h

void add_sym_server (SymbolServer * s)

Defined at line 116 of file ../../src/developer/debug/zxdb/console/command.h