CODIndexedCommand Class
class CODIndexedCommand: public CODCommand
A command object which must save an index value for components.Defined in: OdIndexedCmd.h
Class Members
CODIndexedCommand(CODModel* pModel)
Constructor.
virtual ~CODIndexedCommand()
Destructor.
CODIndexMap m_mapIndices
A map of indices for components.
void ClearIndices()
Removes all entries from the map of indices.
BOOL GetIndex(CODComponent* pComp, int& nIndex) const
Gets the index associated with a component.
void SetIndex(CODComponent* pComp, int nIndex)
Saves an index value for a component.
void UpdateIndices(CODComponentSet* pCompSet)
Gets index from the model for each component in the set and updates the map appropriately.