class CODNameCommand: public CODCommand
Changes the name of components.
Defined in: OdNameCmd.h
VIEWS_API CODNameCommand(CODModel* pModel)
Constructor.
VIEWS_API virtual ~CODNameCommand()
Destructor.
CString m_strName
The name to change the components to.
CMap<CODComponent*,CODComponent*,CString,CString> m_mapOldNames
A map containing the old names of the components. These are stored for undo purposes.
VIEWS_API CString GetName() const
Gets the name that the components will be switched to.
VIEWS_API void SetName(LPCTSTR lpszName)
Sets the name that the components will be switched to.
VIEWS_API void ClearOldNames()
Removes all entries from the map of old names.
VIEWS_API BOOL GetOldName(CODComponent* pComp, CString& strOldName) const
Gets the old name for a particular component.
VIEWS_API void SetOldName(CODComponent* pComp, CString strOldName)
Sets the old name for a particular component.
VIEWS_API virtual BOOL Execute()
Change the name of the components.
VIEWS_API virtual BOOL Unexecute()
Restore the old names of the components.
VIEWS_API virtual sfl::MvcCommand* Dup() const
Make a copy of this name command.
VIEWS_API virtual void Sprint(CString& strCmd)
Print information on this command for logging purposes.