AutoCmd represents a command that can be executed by an Automation interface wrapped by a Variant class.
The AutoCmd class is a friend class to Variant. It represents a single method on an Automation interface that is assigned as the value of a Variant.
Do not use instances of AutoCmd, which includes pure virtual methods. Instead, use the AutoCmd descendant that represents the type of the desired method. These descendants are:
- PropertyGet, for methods that return a property value.
- PropertySet, for methods that set a property value.
- Procedure, for methods that do not return a value.
- Function, for methods that do return a value.
Each AutoCmd instance is assigned a name, which is the same as the name of the corresponding method on the interface. In addition, it can be assigned parameters that correspond to the parameters of the method. These parameters can be stored by position or by name.
Once you have assigned parameter values to the AutoCmd object, you can execute it using the Variant::Exec method.