Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
DictItemUndoable Class Reference

#include <CUndoable.h>

Inherits Undoable.

Public Member Functions

 DictItemUndoable (Dict **d, Dict data, NameKeyType key, Int dictsToModify=1, CWorldBuilderDoc *pDoc=NULL, Bool inval=false)
 
 ~DictItemUndoable (void)
 
virtual void Do (void)
 pure virtual.
 
virtual void Undo (void)
 pure virtual.
 
- Public Member Functions inherited from Undoable
 Undoable (void)
 Create a new undoable.
 
 ~Undoable (void)
 Undoable - destructor.
 
virtual void Redo (void)
 Redo defaults to Do().
 
void LinkNext (Undoable *pNext)
 Link another undoable to this.
 
UndoableGetNext (void)
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 

Static Public Member Functions

static Dict buildSingleItemDict (AsciiString k, Dict::DataType t, AsciiString v)
 
- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 

Protected Attributes

Int m_numDictsToModify
 
std::vector< Dict * > m_dictToModify
 
std::vector< Dictm_oldDictData
 
Dict m_newDictData
 
CWorldBuilderDocm_pDoc
 
Bool m_inval
 
NameKeyType m_key
 
- Protected Attributes inherited from Undoable
UndoablemNext
 

Additional Inherited Members

- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Detailed Description

Definition at line 219 of file CUndoable.h.

Constructor & Destructor Documentation

◆ DictItemUndoable()

DictItemUndoable::DictItemUndoable ( Dict ** d,
Dict data,
NameKeyType key,
Int dictsToModify = 1,
CWorldBuilderDoc * pDoc = NULL,
Bool inval = false )

Definition at line 761 of file CUndoable.cpp.

◆ ~DictItemUndoable()

DictItemUndoable::~DictItemUndoable ( void )

Definition at line 783 of file CUndoable.cpp.

Member Function Documentation

◆ buildSingleItemDict()

Dict DictItemUndoable::buildSingleItemDict ( AsciiString k,
Dict::DataType t,
AsciiString v )
static

Definition at line 822 of file CUndoable.cpp.

◆ Do()

void DictItemUndoable::Do ( void )
virtual

pure virtual.

Implements Undoable.

Definition at line 788 of file CUndoable.cpp.

◆ Undo()

void DictItemUndoable::Undo ( void )
virtual

pure virtual.

Implements Undoable.

Definition at line 805 of file CUndoable.cpp.

Member Data Documentation

◆ m_dictToModify

std::vector<Dict*> DictItemUndoable::m_dictToModify
protected

Definition at line 223 of file CUndoable.h.

◆ m_inval

Bool DictItemUndoable::m_inval
protected

Definition at line 227 of file CUndoable.h.

◆ m_key

NameKeyType DictItemUndoable::m_key
protected

Definition at line 228 of file CUndoable.h.

◆ m_newDictData

Dict DictItemUndoable::m_newDictData
protected

Definition at line 225 of file CUndoable.h.

◆ m_numDictsToModify

Int DictItemUndoable::m_numDictsToModify
protected

Definition at line 222 of file CUndoable.h.

◆ m_oldDictData

std::vector<Dict> DictItemUndoable::m_oldDictData
protected

Definition at line 224 of file CUndoable.h.

◆ m_pDoc

CWorldBuilderDoc* DictItemUndoable::m_pDoc
protected

Definition at line 226 of file CUndoable.h.


The documentation for this class was generated from the following files: