Gadget
Public Member Functions | List of all members
HasName Class Reference

This is the base class for any object that has a name. More...

#include <hasname.h>

Inheritance diagram for HasName:
Inheritance graph
Collaboration diagram for HasName:
Collaboration graph

Public Member Functions

 HasName ()
 This is the default HasName constructor. More...
 
virtual ~HasName ()
 This is the default HasName destructor. More...
 
 HasName (const char *givenname)
 This is the HasName constructor for a specified name. More...
 
const char * getName () const
 This will return a null terminated text string containing the name of the object. More...
 

Detailed Description

This is the base class for any object that has a name.

Constructor & Destructor Documentation

◆ HasName() [1/2]

HasName::HasName ( )
inline

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
givennameis a text string containing the name of the object to be created

Member Function Documentation

◆ 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: