API Reference > OdDg Classes > OdDgCommandContext Class
OdDgCommandContext Class
OdDgCommandContextOdDgCommandContext
Syntax
C++
class OdDgCommandContext : public OdEdCommandContext;

DgCommandContext.h

This class defines the interface for I/O and database access for custom commands during their execution.

Client applications that invoke custom commands, should use an instance of this class (or a subclass) to pass to the OdEdCommandStack::executeCommand function. Using this class instead of a true instance of OdEdCommandContext provides custom commands with database access. 

 

 
Name 
Description 
 
Returns a database, for use in a custom command. 
 
This is dbUserIO, a member of class OdDgCommandContext. 
 
This is ODRX_DECLARE_MEMBERS, a member of class OdDgCommandContext. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.