Class for attribute mapping. More...
#include <kockpitunitmap.h>

Public Member Functions | |
| KockpitUnitMap () | |
| Standard constructor. | |
| KockpitUnitMap (KockpitUser *kuser, const QStringList &mapfiles, QObject *parent=0) | |
| Constructor. | |
| KockpitUnitMap (KockpitGroup *kgrp, const QStringList &mapfiles, QObject *parent=0) | |
| Constructor. | |
| KockpitUnitMap (const KockpitUnitMap &kmap) | |
| Copy constructor. | |
| virtual | ~KockpitUnitMap () |
| Destructor. | |
| void | deleteKunit () |
| Delete Kunit. | |
| virtual KockpitUnit * | getKunit () const |
| Getter. | |
| virtual KockpitUser * | getKockpitUser (caller cal=APP) const |
| Getter. | |
| virtual KockpitGroup * | getKockpitGroup (caller cal=APP) const |
| Getter. | |
| const KockpitMap * | getMap () const |
| Getter. | |
| void | operator= (const KockpitUnitMap &kmap) |
| Operator. | |
Private Member Functions | |
| bool | readFiles () |
| Read Files. | |
Private Attributes | |
| KockpitUnit * | kunit |
| Base object to map. | |
| KockpitMap * | map |
| Attribute mapper. | |
| XMLMapReader * | reader |
| XMLMap reader to read attribute mappings. | |
| QStringList | mapfiles |
| List of mapping files. | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const KockpitUnitMap &kumap) |
| Output. | |
Class for attribute mapping.
This class is needed to encapsulate a KockpitMap and the associated KockpitUnit. This class manages the user defined mappings by reading in the XML mapping files.
| KockpitUnitMap::KockpitUnitMap | ( | ) | [inline] |
Standard constructor.
| KockpitUnitMap::KockpitUnitMap | ( | KockpitUser * | kuser, | |
| const QStringList & | mapfiles, | |||
| QObject * | parent = 0 | |||
| ) |
Constructor.
Creates a mapping for a KockpitUser object.
| kuser | Object which should be used as mapping base. | |
| mapfiles | Files which configure the mappings. | |
| parent | Parent object. |
| KockpitUnitMap::KockpitUnitMap | ( | KockpitGroup * | kgrp, | |
| const QStringList & | mapfiles, | |||
| QObject * | parent = 0 | |||
| ) |
Constructor.
Creates a mapping for a KockpitGroup object.
| kgrp | Object which should be used as mapping base. | |
| mapfiles | Files which configure the mappings. | |
| parent | Parent object. |
| KockpitUnitMap::KockpitUnitMap | ( | const KockpitUnitMap & | kmap | ) |
Copy constructor.
Create a copy of an existing KockpitUnitMap object.
| kmap | The KockpitUnitMap which should be cloned. |
| KockpitUnitMap::~KockpitUnitMap | ( | ) | [virtual] |
Destructor.
kunit will not be destroyed - for this task, you must call the deleteKunit function. This object is not deleted because it is possible to have multiple KockpitUnitMaps for the same object
| void KockpitUnitMap::deleteKunit | ( | ) |
Delete Kunit.
This function is called in order to delete the object hanging on the kunit pointer.
| KockpitGroup * KockpitUnitMap::getKockpitGroup | ( | caller | cal = APP |
) | const [virtual] |
Getter.
Takes kunit try to cast it to KockpitGroup pointer and returns it.
| cal | Caller - could be plugin or main application. |
| KockpitUser * KockpitUnitMap::getKockpitUser | ( | caller | cal = APP |
) | const [virtual] |
Getter.
Takes kunit try to cast it to KockpitUser pointer and returns it.
| cal | Caller - could be plugin or main application. |
| KockpitUnit * KockpitUnitMap::getKunit | ( | ) | const [virtual] |
Getter.
| const KockpitMap * KockpitUnitMap::getMap | ( | ) | const |
| void KockpitUnitMap::operator= | ( | const KockpitUnitMap & | kmap | ) |
| bool KockpitUnitMap::readFiles | ( | ) | [private] |
Read Files.
This function reads each file specified in mapfiles.
| std::ostream& operator<< | ( | std::ostream & | output, | |
| const KockpitUnitMap & | kumap | |||
| ) | [friend] |
Output.
This function is only needed to give out the KockpitUnitMap on STDOUT.
| output | Reference to stdout. | |
| kumap | Reference to an KockpitUnitMap object. |
KockpitUnit* KockpitUnitMap::kunit [private] |
Base object to map.
KockpitMap* KockpitUnitMap::map [private] |
Attribute mapper.
QStringList KockpitUnitMap::mapfiles [private] |
List of mapping files.
XMLMapReader* KockpitUnitMap::reader [private] |
XMLMap reader to read attribute mappings.
1.6.3