generated by doxygen 1.8 - imsc.uni-graz.at · 8 class documentation static private attributes...

35
v_9b Generated by Doxygen 1.8.11

Upload: trankhanh

Post on 01-Jun-2019

265 views

Category:

Documents


0 download

TRANSCRIPT

v_9b

Generated by Doxygen 1.8.11

Contents

1 Hierarchical Index 1

1.1 Class Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

2 Class Index 3

2.1 Class List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

3 File Index 5

3.1 File List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

4 Class Documentation 7

4.1 Employee Class Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4.1.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.2 Constructor & Destructor Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.2.1 Employee(const string &name) . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.2.2 ∼Employee() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.3 Member Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.3.1 get_Counter() const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.3.2 payment() const =0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.3.3 print(ostream &s) const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4.1.4 Member Data Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

4.1.4.1 _counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

4.1.4.2 _name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

4.2 manager Class Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

4.2.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

4.2.2 Constructor & Destructor Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

iv CONTENTS

4.2.2.1 manager(const string &name, float wageWeek) . . . . . . . . . . . . . . . . . . 10

4.2.2.2 ∼manager() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

4.2.3 Member Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.2.3.1 payment() const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.2.3.2 print(ostream &s) const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.2.4 Member Data Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.2.4.1 _wageWeek . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.3 salesPerson Class Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

4.3.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.2 Constructor & Destructor Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.2.1 salesPerson(const string &name, int hours, float wageHour, float commission,float percent) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.2.2 ∼salesPerson() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.3 Member Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.3.1 payment() const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.3.2 print(ostream &s) const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.4 Member Data Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

4.3.4.1 _commission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

4.3.4.2 _percent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

4.4 Worker Class Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

4.4.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

4.4.2 Constructor & Destructor Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

4.4.2.1 Worker(const string &name, float hours, float wageHours) . . . . . . . . . . . . 15

4.4.2.2 ∼Worker() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.4.3 Member Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.4.3.1 payment() const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.4.3.2 print(ostream &s) const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.4.4 Member Data Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.4.4.1 _hours . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.4.4.2 _wageHours . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Generated by Doxygen

CONTENTS v

5 File Documentation 19

5.1 employee.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

5.2 employee.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

5.3 main.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

5.3.1 Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

5.3.1.1 main() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

5.3.1.2 operator<<(ostream &s, const Employee &org) . . . . . . . . . . . . . . . . . 22

5.4 manager.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

5.5 manager.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

5.6 salesperson.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

5.7 salesperson.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

5.8 worker.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

5.9 worker.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Index 29

Generated by Doxygen

Chapter 1

Hierarchical Index

1.1 Class Hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically:

Employee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Worker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

salesPerson . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

2 Hierarchical Index

Generated by Doxygen

Chapter 2

Class Index

2.1 Class List

Here are the classes, structs, unions and interfaces with brief descriptions:

Employee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9salesPerson . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Worker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

4 Class Index

Generated by Doxygen

Chapter 3

File Index

3.1 File List

Here is a list of all files with brief descriptions:

employee.cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19employee.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19main.cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20manager.cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22manager.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23salesperson.cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23salesperson.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24worker.cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25worker.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

6 File Index

Generated by Doxygen

Chapter 4

Class Documentation

4.1 Employee Class Reference

#include <employee.h>

Inheritance diagram for Employee:

Employee

manager Worker

salesPerson

Public Member Functions

• Employee (const string &name)• virtual ∼Employee ()• virtual void print (ostream &s) const• virtual float payment () const =0• int get_Counter () const

Private Attributes

• string _name

Name der Person.

8 Class Documentation

Static Private Attributes

• static int _counter = 0

e i n Zaehler fuer alle Instanzen

4.1.1 Detailed Description

Abstrakte Basisklasse eines allgemeinen Angestellten einer Verkaufsstelle

4.1.2 Constructor & Destructor Documentation

4.1.2.1 Employee::Employee ( const string & name )

Parameter constructor

Parameters

in name Name des Angestellten

4.1.2.2 Employee::∼Employee ( ) [virtual]

Default destructor

4.1.3 Member Function Documentation

4.1.3.1 int Employee::get_Counter ( ) const [inline]

Rueckgabe der Anzahlt der Instanzen von Employee und abgleiteten Klassen.

Returns

Anzahl.

4.1.3.2 virtual float Employee::payment ( ) const [pure virtual]

Berechnet das Gehalt.

Returns

Gehalt.

Implemented in salesPerson, Worker, and manager.

4.1.3.3 void Employee::print ( ostream & s ) const [virtual]

Gibt die Daten der aktuellen Instanz aus.

Generated by Doxygen

4.2 manager Class Reference 9

Parameters

in,out s Ausgabestrom

Reimplemented in salesPerson, Worker, and manager.

Here is the call graph for this function:

Employee::print Employee::payment

4.1.4 Member Data Documentation

4.1.4.1 int Employee::_counter = 0 [static], [private]

e i n Zaehler fuer alle Instanzen

Der e i n e Zaehler fuer alle Instanzen wird definiert.

4.1.4.2 string Employee::_name [private]

Name der Person.

The documentation for this class was generated from the following files:

• employee.h• employee.cpp

4.2 manager Class Reference

#include <manager.h>

Inheritance diagram for manager:

manager

Employee

Generated by Doxygen

10 Class Documentation

Collaboration diagram for manager:

manager

Employee

Public Member Functions

• manager (const string &name, float wageWeek)• virtual ∼manager ()• void print (ostream &s) const• float payment () const

Private Attributes

• float _wageWeek

Wochengehalt.

4.2.1 Detailed Description

Manager einer Verkaufsstelle

4.2.2 Constructor & Destructor Documentation

4.2.2.1 manager::manager ( const string & name, float wageWeek )

Parameter constructor

Parameters

in name Name des Angestellten

in wageWeek Wochengehalt

4.2.2.2 manager::∼manager ( ) [virtual]

Default destructor

Generated by Doxygen

4.2 manager Class Reference 11

4.2.3 Member Function Documentation

4.2.3.1 float manager::payment ( ) const [inline], [virtual]

Berechnet das Gehalt.

Returns

Gehalt.

Implements Employee.

4.2.3.2 void manager::print ( ostream & s ) const [virtual]

Gibt die Daten der aktuellen Instanz aus.

Parameters

in,out s Ausgabestrom

Reimplemented from Employee.

Here is the call graph for this function:

manager::print Employee::print Employee::payment

4.2.4 Member Data Documentation

4.2.4.1 float manager::_wageWeek [private]

Wochengehalt.

The documentation for this class was generated from the following files:

• manager.h

• manager.cpp

Generated by Doxygen

12 Class Documentation

4.3 salesPerson Class Reference

#include <salesperson.h>

Inheritance diagram for salesPerson:

salesPerson

Worker

Employee

Collaboration diagram for salesPerson:

salesPerson

Worker

Employee

Public Member Functions

• salesPerson (const string &name, int hours, float wageHour, float commission, float percent)• virtual ∼salesPerson ()• void print (ostream &s) const• float payment () const

Generated by Doxygen

4.3 salesPerson Class Reference 13

Private Attributes

• float _commission

Umsatz.

• float _percent

Umsatzbeteiligung in Prozent.

4.3.1 Detailed Description

Verkaeufer in einer Verkaufsstelle

4.3.2 Constructor & Destructor Documentation

4.3.2.1 salesPerson::salesPerson ( const string & name, int hours, float wageHour, float commission, float percent )

Parameter constructor

Parameters

in name Name des Angestellten

in hours Arbeitsstundenin wageHour Stundenlohn

in commission Umsatzin percent Umsatzbeteiligung in Prozent

4.3.2.2 salesPerson::∼salesPerson ( ) [virtual]

Default destructor

4.3.3 Member Function Documentation

4.3.3.1 float salesPerson::payment ( ) const [inline], [virtual]

Berechnet das Gehalt.

Returns

Gehalt.

Reimplemented from Worker.

4.3.3.2 void salesPerson::print ( ostream & s ) const [virtual]

Gibt die Daten der aktuellen Instanz aus.

Generated by Doxygen

14 Class Documentation

Parameters

in,out s Ausgabestrom

Reimplemented from Worker.

Here is the call graph for this function:

salesPerson::print Worker::print Employee::print Employee::payment

4.3.4 Member Data Documentation

4.3.4.1 float salesPerson::_commission [private]

Umsatz.

4.3.4.2 float salesPerson::_percent [private]

Umsatzbeteiligung in Prozent.

The documentation for this class was generated from the following files:

• salesperson.h• salesperson.cpp

4.4 Worker Class Reference

#include <worker.h>

Inheritance diagram for Worker:

Worker

salesPerson

Employee

Generated by Doxygen

4.4 Worker Class Reference 15

Collaboration diagram for Worker:

Worker

Employee

Public Member Functions

• Worker (const string &name, float hours, float wageHours)• virtual ∼Worker ()• void print (ostream &s) const• float payment () const

Private Attributes

• float _hours

Arbeitsstunden.

• float _wageHours

Member Stundenlohn.

4.4.1 Detailed Description

Normaler Arbeiter (Packer) in einer Verkaufsstelle.

4.4.2 Constructor & Destructor Documentation

4.4.2.1 Worker::Worker ( const string & name, float hours, float wageHours )

Parameter constructor

Parameters

in name Name des Angestellten

in hours Arbeitsstundenin wageHours Stundenlohn

Generated by Doxygen

16 Class Documentation

4.4.2.2 Worker::∼Worker ( ) [virtual]

Default destructor

4.4.3 Member Function Documentation

4.4.3.1 float Worker::payment ( ) const [inline], [virtual]

Berechnet das Gehalt.

Returns

Gehalt.

Implements Employee.

Reimplemented in salesPerson.

4.4.3.2 void Worker::print ( ostream & s ) const [virtual]

Gibt die Daten der aktuellen Instanz aus.

Parameters

in,out s Ausgabestrom

Reimplemented from Employee.

Reimplemented in salesPerson.

Here is the call graph for this function:

Worker::print Employee::print Employee::payment

4.4.4 Member Data Documentation

4.4.4.1 float Worker::_hours [private]

Arbeitsstunden.

Generated by Doxygen

4.4 Worker Class Reference 17

4.4.4.2 float Worker::_wageHours [private]

Member Stundenlohn.

The documentation for this class was generated from the following files:

• worker.h• worker.cpp

Generated by Doxygen

18 Class Documentation

Generated by Doxygen

Chapter 5

File Documentation

5.1 employee.cpp File Reference

#include "employee.h"Include dependency graph for employee.cpp:

employee.cpp

employee.h

string iostream

5.2 employee.h File Reference

#include <string>#include <iostream>

20 File Documentation

Include dependency graph for employee.h:

employee.h

string iostream

This graph shows which files directly or indirectly include this file:

employee.h

worker.h

main.cpp

manager.h employee.cpp

worker.cpp salesperson.h

salesperson.cpp

manager.cpp

Classes

• class Employee

5.3 main.cpp File Reference

#include <iostream>#include "employee.h"#include "worker.h"#include "manager.h"#include "salesperson.h"

Generated by Doxygen

5.3 main.cpp File Reference 21

Include dependency graph for main.cpp:

main.cpp

iostream

employee.h

worker.h manager.h

salesperson.h

string

Functions

• ostream & operator<< (ostream &s, const Employee &org)• int main ()

5.3.1 Function Documentation

5.3.1.1 int main ( )

Here is the call graph for this function:

main

Worker::print

Employee::get_Counter

salesPerson::print

manager::print

Employee::print Employee::payment

Generated by Doxygen

22 File Documentation

5.3.1.2 ostream & operator<< ( ostream & s, const Employee & org )

Here is the call graph for this function:

operator<< Employee::print Employee::payment

5.4 manager.cpp File Reference

#include "manager.h"Include dependency graph for manager.cpp:

manager.cpp

manager.h

employee.h

string iostream

Generated by Doxygen

5.5 manager.h File Reference 23

5.5 manager.h File Reference

#include "employee.h"Include dependency graph for manager.h:

manager.h

employee.h

string iostream

This graph shows which files directly or indirectly include this file:

manager.h

manager.cpp main.cpp

Classes

• class manager

5.6 salesperson.cpp File Reference

#include "salesperson.h"

Generated by Doxygen

24 File Documentation

Include dependency graph for salesperson.cpp:

salesperson.cpp

salesperson.h

worker.h

employee.h

string iostream

5.7 salesperson.h File Reference

#include "worker.h"

Generated by Doxygen

5.8 worker.cpp File Reference 25

Include dependency graph for salesperson.h:

salesperson.h

worker.h

employee.h

string iostream

This graph shows which files directly or indirectly include this file:

salesperson.h

salesperson.cpp main.cpp

Classes

• class salesPerson

5.8 worker.cpp File Reference

#include "worker.h"

Generated by Doxygen

26 File Documentation

Include dependency graph for worker.cpp:

worker.cpp

worker.h

employee.h

string iostream

5.9 worker.h File Reference

#include "employee.h"Include dependency graph for worker.h:

worker.h

employee.h

string iostream

Generated by Doxygen

5.9 worker.h File Reference 27

This graph shows which files directly or indirectly include this file:

worker.h

worker.cpp salesperson.h

main.cppsalesperson.cpp

Classes

• class Worker

Generated by Doxygen

28 File Documentation

Generated by Doxygen

Index

_commissionsalesPerson, 14

_counterEmployee, 9

_hoursWorker, 16

_nameEmployee, 9

_percentsalesPerson, 14

_wageHoursWorker, 16

_wageWeekmanager, 11

∼EmployeeEmployee, 8

∼WorkerWorker, 15

∼managermanager, 10

∼salesPersonsalesPerson, 13

Employee, 7_counter, 9_name, 9∼Employee, 8Employee, 8get_Counter, 8payment, 8print, 8

employee.cpp, 19employee.h, 19

get_CounterEmployee, 8

mainmain.cpp, 21

main.cpp, 20main, 21operator<<, 21

manager, 9_wageWeek, 11∼manager, 10manager, 10payment, 11print, 11

manager.cpp, 22manager.h, 23

operator<<main.cpp, 21

paymentEmployee, 8manager, 11salesPerson, 13Worker, 16

printEmployee, 8manager, 11salesPerson, 13Worker, 16

salesPerson, 12_commission, 14_percent, 14∼salesPerson, 13payment, 13print, 13salesPerson, 13

salesperson.cpp, 23salesperson.h, 24

Worker, 14_hours, 16_wageHours, 16∼Worker, 15payment, 16print, 16Worker, 15

worker.cpp, 25worker.h, 26