#include <kname.h>
Provides two stings, current and an initial name, for reversible renaming. This is especially useful for name clashing, renaming strategies and merging back to a former 3D scene using the initial names.
Definition at line 54 of file kname.h.
Public Member Functions | |
KName (char const *pInitialName="") | |
Constructor. | |
KName (KName const &pName) | |
Copy constructor. | |
~KName () | |
Destructor. | |
void | SetInitialName (char const *pInitialName) |
Set initial name. | |
char const * | GetInitialName () const |
Get initial name. | |
void | SetCurrentName (char const *pNewName) |
Set current name. | |
char const * | GetCurrentName () const |
Get current name. | |
void | SetNameSpace (char const *pNameSpace) |
Set the namespace. | |
char const * | GetNameSpace () const |
Get the namespace. | |
bool | IsRenamed () const |
Check if the current name and internal name match. | |
KName & | operator= (KName const &pName) |
Assignment operator. |
KName | ( | char const * | pInitialName = "" |
) |
Constructor.
pInitialName | Name string used to initialize both members (initialName and currentName) of this class. |
~KName | ( | ) |
Destructor.
void SetInitialName | ( | char const * | pInitialName | ) |
Set initial name.
pInitialName | New string for the initial name. |
char const* GetInitialName | ( | ) | const |
Get initial name.
void SetCurrentName | ( | char const * | pNewName | ) |
Set current name.
pNewName | New string for the current name. |
char const* GetCurrentName | ( | ) | const |
Get current name.
void SetNameSpace | ( | char const * | pNameSpace | ) |
Set the namespace.
pNameSpace | New string for the namespace. |
char const* GetNameSpace | ( | ) | const |
Get the namespace.
bool IsRenamed | ( | ) | const |
Check if the current name and internal name match.
true
if current name isn't identical to initial name.