Representation of an Employee. This class follows the (in)famous example of being an Employee, used in many C++ courses. Employees have names and IDs. If this were a bigger example they might have more.
Public Member functions Summary: | |
constructor | Employee(const std::string& name, const string& id) Constructor. |
std::string | name() Returns the name of this Employee |
std::string | id() Returns the id of this Employee |
short | age() @defgroup age the age attribute @{ |
void | age(short) |
Private Data members Summary: | |
std::string | _name The name |
std::string | _id The ID. |
short | _age |
Public Member function Details: |
Constructor. id may be empty, in which case a new ID is generated.
Private Data member Details: |
The ID. This is a sequence of alphanumeric digits of length 10 and starting with 'e'.