SUMO - Simulation of Urban MObility
GNEChange Class Reference

the function-object for an editing operation (abstract base) More...

#include <GNEChange.h>

Inheritance diagram for GNEChange:
Inheritance graph
Collaboration diagram for GNEChange:
Collaboration graph

Public Member Functions

 GNEChange (GNENet *net, bool forward)
 Constructor. More...
 
virtual void redo ()
 redo action/operation More...
 
virtual FXString redoName () const
 return rendoName More...
 
virtual FXuint size () const
 return actual size More...
 
virtual void undo ()
 undo action/operation More...
 
virtual FXString undoName () const
 return undoName More...
 
 ~GNEChange ()
 Destructor. More...
 

Protected Attributes

bool myForward
 we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More...
 
GNENet * myNet
 the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More...
 

Detailed Description

the function-object for an editing operation (abstract base)

Definition at line 49 of file GNEChange.h.

Constructor & Destructor Documentation

GNEChange::GNEChange ( GNENet *  net,
bool  forward 
)

Constructor.

Parameters
[in]netGNENet net on which to apply changes
[in]forwardThe direction of this change

Definition at line 48 of file GNEChange.cpp.

GNEChange::~GNEChange ( )

Destructor.

Definition at line 53 of file GNEChange.cpp.

Member Function Documentation

void GNEChange::redo ( )
virtual
FXString GNEChange::redoName ( ) const
virtual
FXuint GNEChange::size ( ) const
virtual

return actual size

Definition at line 57 of file GNEChange.cpp.

void GNEChange::undo ( )
virtual
FXString GNEChange::undoName ( ) const
virtual

Field Documentation

GNENet* GNEChange::myNet
protected

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