API Reference > OdEd Classes > OdEdCommandStack Class
OdEdCommandStack Class
OdEdCommandStackOdEdCommandStack
Syntax
C++
class OdEdCommandStack : public OdRxObject;

EdCommandStack.h

This class implements and manages the global command stack.

The command stack consists of groups which contain their respective commands. Adding a command adds it to its group. If the group does not exist, the group is first created and pushed onto the top of the stack. 

The lookupCommand and executeCommand functions search for command names in the group order on the stack. 

In the case of duplicate command names, the most recent one added to the stack is the command that is returned or executed. 

The group order may be changed with popGroupToTop function. 

Corresponding C++ library: TD_Root 

 

 
Name 
Description 
 
This is record OdEdCommandStack::LookupFlags. 
 
Name 
Description 
 
This is the overview for the addCommand method overload. 
 
Adds the specified reactor to this object's reactor list.
 
 
This is the overview for the executeCommand method overload. 
 
Returns this object's transient reactors. 
 
Returns the OdEdCommand object with the specified name in this Stack object.
 
 
Returns an Iterator object that can be used to traverse the group objects in this Stack object. 
 
This is the overview for the newIterator method overload. 
 
This is ODRX_DECLARE_MEMBERS, a member of class OdEdCommandStack. 
 
This function pops the cmdGroupName command group to the top of the command stack making it the first group to be searched when resolving application defined command names.
 
 
This is the overview for the removeCmd method overload. 
 
Removes the specified group and its commands from this Stack object.
 
 
Removes the specified transient reactor from this object's reactor list.
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.