This is the base class for any object that has a name.
More...
#include <hasname.h>
This is the base class for any object that has a name.
◆ HasName() [1/2]
This is the default HasName constructor.
◆ ~HasName()
virtual HasName::~HasName |
( |
| ) |
|
|
inlinevirtual |
This is the default HasName destructor.
- Note
- This will free all the memory allocated
◆ HasName() [2/2]
HasName::HasName |
( |
const char * |
givenname | ) |
|
|
inline |
This is the HasName constructor for a specified name.
- Parameters
-
givenname | is a text string containing the name of the object to be created |
◆ getName()
const char* HasName::getName |
( |
| ) |
const |
|
inline |
This will return a null terminated text string containing the name of the object.
- Returns
- name
The documentation for this class was generated from the following file: