Modules | Files | Inheritance Tree | Inheritance Graph | Name Index
class Employee
Files: employee.cc

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.

See Also:
Employee.name()
Employee.id()
string


Public Member functions Summary:
 constructorEmployee(const std::string& name, const string& id)
Constructor.
 std::stringname()
Returns the name of this Employee
 std::stringid()
Returns the id of this Employee
 shortage()
@defgroup age the age attribute @{
 voidage(short)

Private Data members Summary:
std::string_name
The name
std::string_id
The ID.
short_age

Public Member function Details:
 constructor Employee(const std::string& name, const string& id)

Constructor. id may be empty, in which case a new ID is generated.


Private Data member Details:
std::string _id

The ID. This is a sequence of alphanumeric digits of length 10 and starting with 'e'.