KRenamingStrategy
#include<krenamingstrategy.h>

Inheritance diagram for KRenamingStrategy:

Inheritance graph
[legend]

List of all members.

Detailed Description

Renaming strategy mechanism.

Base class describing how the renaming process is handled. This class is intented to be derived into a specialised renaming class.

Basicaly, the Rename is called everytime a new element is added to an entity. the strategy keep

Definition at line56of filekrenamingstrategy.h.


Public Member Functions

 KRenamingStrategy()
 Constructor.
virtual ~KRenamingStrategy()
 Destructor.
virtual void Clear()=0
 Empty all memories about given names.
virtual bool Rename(KName&pName)=0
 Rename.
virtualKRenamingStrategyClone()=0
 Spawn mechanism.

Constructor&Destructor Documentation

Constructor.

virtual ~KRenamingStrategy( ) [virtual]

Destructor.

Member Function Documentation

virtual void Clear( ) [pure virtual]

Empty all memories about given names.

Implemented inKNumberRenamingStrategy, andKFbxRenamingStrategy.

virtual bool Rename(KNamepName ) [pure virtual]

Rename.

Parameters:
pName 
Returns:
how the operation went.

Implemented inKNumberRenamingStrategy, andKFbxRenamingStrategy.

virtualKRenamingStrategy* Clone( ) [pure virtual]

Spawn mechanism.

Create a dynamic renaming strategy instance of the same type the child class.

Returns:
newKRenamingStrategy;

Implemented inKNumberRenamingStrategy, andKFbxRenamingStrategy.