API Reference > OdEd Classes > OdEdCommandStack Class > OdEdCommandStack Methods > OdEdCommandStack::lookupCmd Method
OdEdCommandStack::lookupCmd Method
Syntax
C++
virtual OdEdCommandPtr lookupCmd(const OdString& commandName, int lookupFlags = kGlobal|kLocal, const OdString& groupName = OdString::kEmpty) = 0;
Parameters 
Description 
const OdString& commandName 
[in] Name of the command to find.  
int lookupFlags = kGlobal|kLocal 
[in] Specified where command lookup is to look.  
const OdString& groupName = OdString::kEmpty 
[in] Group name. 

Returns a SmartPointer to the OdEdCommand object if successful, otherwise a null SmartPointer.

Returns the OdEdCommand object with the specified name in this Stack object. 

 

This function searches for command names in the group order on the stack. 

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. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.