Parameters |
Description |
const OdString& cmdName |
[in] Name of the command to find. |
OdEdCommandContext* pCmdCtx |
[in] Pointer to the command *context*. |
int lookupFlags = kGlobal|kLocal |
[in] Specified where command lookup is to look. |
const OdString& groupName = OdString::kEmpty |
[in] Group *name*. |
Executes the specified command in this Stack object.
Lookups a command object registred in this Stack object by a cpecified cmdName, lookupFlags and groupName and executes it. If command was not found then method fires OdEdCommandStackReactor::unknownCommand() event that may provide back a command object for the given name. So if a command object was provided by one of the reactors then implementation of this method executs it. If one was provided by neither of the reactors and kThrowUnknown flag was specified in lookupFlags then OdEdUnknownCommand would be thrown. If kThrowUnknown flag was not specified the method just exits.
If groupName is specified, only that group will be searched.
lookupFlags must be a combination of one or more of the following:
Name |
Value |
Description |
kGlobal |
0x01 |
Search global (untranslated) names. |
kLocal |
0x02 |
Search local (translated) names. |
kSpecifedGroup |
0x04 |
Search in specified group only. |
kUndefed |
0x08 |
Indicates whether or not to return commands that are currently marked as undefined. |
kThrowUnknown |
0x10 |
Throw OdEdUnknownCommand exception if command was not found. |
OdEdCommandStack::lookupCmd, OdEdCommandStackReactor::unknownCommand, OdEdCommand::execute.
Copyright © 2002–2020. Open Design Alliance. All rights reserved.
|