KockpitMap Class Reference
Class for attribute mapping.
More...
#include <kockpitmap.h>
Detailed Description
Class for attribute mapping.
This class is needed to encapsulate a KockpitUser or a KockpitGroup and realize an attribute mapping using a list of AttributeMap objects.
Constructor & Destructor Documentation
KockpitMap::KockpitMap |
( |
KockpitUser * |
kuser, |
|
|
QObject * |
parent = 0 | |
|
) |
| | |
Constructor.
- Parameters:
-
| kuser | This pointer points to the object which attributes will be mapped. |
| parent | Parent Object. |
KockpitMap::KockpitMap |
( |
KockpitGroup * |
kgrp, |
|
|
QObject * |
parent = 0 | |
|
) |
| | |
Constructor.
- Parameters:
-
| kgrp | This pointer points to the object which attributes will be mapped. |
| parent | Parent Object. |
KockpitMap::KockpitMap |
( |
const KockpitMap & |
kmap |
) |
|
Copy constructor.
Create a copy of an existing KockpitMap object.
- Parameters:
-
virtual KockpitMap::~KockpitMap |
( |
|
) |
[inline, virtual] |
Member Function Documentation
QListIterator< AttributeMap > KockpitMap::getIterator |
( |
|
) |
const |
Getter.
Get an iterator to iterate over attrsMap.
- Returns:
- QListIterator<AttributeMap> Iterator over attrsMap.
Getter.
- Parameters:
-
| cal | Who calls this function (plugin or main application). Needed because dynamic_cast ist not possible in plugins (RTTI). |
- Returns:
- KockpitGroup* kunit
-
NULL Somethin went wrong or kunit points to a KockpitUser object.
Getter.
- Parameters:
-
| cal | Who calls this function (plugin or main application). Needed because dynamic_cast ist not possible in plugins. |
- Returns:
- KockpitUser* kunit
-
NULL Something went wrong or kunit points to a KockpitGroup object.
Getter.
- Returns:
- KockpitUnit* kunit
bool KockpitMap::hasAttributeMaps |
( |
|
) |
const [virtual] |
Check if attribute map entries exist.
- Returns:
- true There are some attribute mappings.
-
false No attribute mappings are defined.
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
output, |
|
|
const KockpitMap & |
kmap | |
|
) |
| | [friend] |
Output.
This function is only needed to give out the KockpitMap on STDOUT.
- Parameters:
-
| output | Reference to stdout. |
| kmap | Reference to an KockpitMap object. |
Field Documentation
The documentation for this class was generated from the following files: