Eclipse SUMO - Simulation of Urban MObility
GNEChange_EnableAttribute Class Reference

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

#include <GNEChange_EnableAttribute.h>

Inheritance diagram for GNEChange_EnableAttribute:
Collaboration diagram for GNEChange_EnableAttribute:

Public Member Functions

 GNEChange_EnableAttribute (GNEAttributeCarrier *ac, GNENet *net, const int originalAttributes, const int newAttributes)
 Constructor. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_EnableAttribute ()
 Destructor. More...
 
inherited from GNEChange

get undo Name

FXString undoName () const
 return undoName More...
 
FXString redoName () const
 get Redo name More...
 
void undo ()
 undo action More...
 
void redo ()
 redo action More...
 

Protected Attributes

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

Private Attributes

GNEAttributeCarriermyAC
 the net to which all operations shall be applied More...
 
const int myNewAttributes
 original attributes More...
 
const int myOriginalAttributes
 original attributes More...
 

Detailed Description

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

Definition at line 45 of file GNEChange_EnableAttribute.h.

Constructor & Destructor Documentation

◆ GNEChange_EnableAttribute()

GNEChange_EnableAttribute::GNEChange_EnableAttribute ( GNEAttributeCarrier ac,
GNENet net,
const int  originalAttributes,
const int  newAttributes 
)

Constructor.

Parameters
[in]acThe attribute-carrier to be modified
[in]netNet in which AC is saved
[in]originalAttributesoriginal set of attributes
[in]newAttributesnew set of attributes

Definition at line 37 of file GNEChange_EnableAttribute.cpp.

◆ ~GNEChange_EnableAttribute()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_EnableAttribute::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 109 of file GNEChange_EnableAttribute.cpp.

References GNEAttributeCarrier::getTagStr(), and myAC.

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 45 of file GNEChange.cpp.

Referenced by GNELane::isValid().

◆ undo()

◆ undoName()

FXString GNEChange_EnableAttribute::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 103 of file GNEChange_EnableAttribute.cpp.

References GNEAttributeCarrier::getTagStr(), and myAC.

Field Documentation

◆ myAC

GNEAttributeCarrier* GNEChange_EnableAttribute::myAC
private

the net to which all operations shall be applied

Note
we are not responsible for the pointer

Definition at line 79 of file GNEChange_EnableAttribute.h.

Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_EnableAttribute().

◆ myForward

◆ myNet

◆ myNewAttributes

const int GNEChange_EnableAttribute::myNewAttributes
private

original attributes

Definition at line 85 of file GNEChange_EnableAttribute.h.

Referenced by redo().

◆ myOriginalAttributes

const int GNEChange_EnableAttribute::myOriginalAttributes
private

original attributes

Definition at line 82 of file GNEChange_EnableAttribute.h.

Referenced by undo().


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