#include <ReferencedItem.h>

Basic class for structures which are referenced by other classes. The wish is to have an information whether an instance of a derived class was already saved (together with a referencing class) or shall be saved this time.
Definition at line 44 of file ReferencedItem.h.
Public Member Functions | |
| bool | isSaved () const throw () |
| Returns the information whether this item was already saved. | |
| void | markSaved () throw () |
| Marks the item as saved. | |
| ReferencedItem () throw () | |
| Constructor. | |
| virtual | ~ReferencedItem () throw () |
| Destructor. | |
Private Member Functions | |
| ReferencedItem & | operator= (const ReferencedItem &src) |
| Invalidated assignment operator. | |
| ReferencedItem (const ReferencedItem &src) | |
| Invalidated copy constructor. | |
Private Attributes | |
| bool | myWasSaved |
| Information whether the item was already saved. | |
| ReferencedItem::ReferencedItem | ( | ) | throw () [inline] |
| virtual ReferencedItem::~ReferencedItem | ( | ) | throw () [inline, virtual] |
| ReferencedItem::ReferencedItem | ( | const ReferencedItem & | src | ) | [private] |
Invalidated copy constructor.
| bool ReferencedItem::isSaved | ( | ) | const throw () [inline] |
Returns the information whether this item was already saved.
Definition at line 58 of file ReferencedItem.h.
References myWasSaved.
Referenced by RONet::computeRoute(), and ROVehicle::saveAllAsXML().
00058 { 00059 return myWasSaved; 00060 }
| void ReferencedItem::markSaved | ( | ) | throw () [inline] |
Marks the item as saved.
Definition at line 65 of file ReferencedItem.h.
References myWasSaved.
00065 { 00066 myWasSaved = true; 00067 }
| ReferencedItem& ReferencedItem::operator= | ( | const ReferencedItem & | src | ) | [private] |
Invalidated assignment operator.
bool ReferencedItem::myWasSaved [private] |
Information whether the item was already saved.
Definition at line 72 of file ReferencedItem.h.
Referenced by isSaved(), and markSaved().
1.5.6