Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNENetHelper::SavingStatus Class Reference

modul for Saving status More...

#include <GNENetHelper.h>

Collaboration diagram for GNENetHelper::SavingStatus:
[legend]

Public Member Functions

 SavingStatus (GNENet *net)
 constructor
 
SumoConfig
void requireSaveSumoConfig ()
 inform that SumoConfig has to be saved
 
void SumoConfigSaved ()
 mark SumoConfig as saved
 
bool isSumoConfigSaved () const
 check if SumoConfig is saved
 
NeteditConfig
void requireSaveNeteditConfig ()
 inform that netedit config has to be saved
 
void neteditConfigSaved ()
 mark netedit config as saved
 
bool isNeteditConfigSaved () const
 check if netedit config is saved
 
network
void requireSaveNetwork ()
 inform that network has to be saved
 
void networkSaved ()
 mark network as saved
 
bool isNetworkSaved () const
 check if network is saved
 
TLS
void requireSaveTLS ()
 inform that TLS has to be saved
 
void TLSSaved ()
 mark TLS as saved
 
bool isTLSSaved () const
 check if TLS are saved
 
edge types
void requireSaveEdgeType ()
 inform that edgeType has to be saved
 
void edgeTypeSaved ()
 mark edgeType as saved
 
bool isEdgeTypeSaved () const
 check if edgeType are saved
 
additionals
void requireSaveAdditionals ()
 inform that additionals has to be saved
 
void additionalsSaved ()
 mark additionals as saved
 
bool isAdditionalsSaved () const
 check if additionals are saved
 
demand elements
void requireSaveDemandElements ()
 inform that demand elements has to be saved
 
void demandElementsSaved ()
 mark demand elements as saved
 
bool isDemandElementsSaved () const
 check if demand elements are saved
 
data elements
void requireSaveDataElements ()
 inform that data elements has to be saved
 
void dataElementsSaved ()
 mark demand elements as saved
 
bool isDataElementsSaved () const
 check if data elements are saved
 
mean datas
void requireSaveMeanDatas ()
 inform that mean data elements has to be saved
 
void meanDatasSaved ()
 mark mean data elements as saved
 
bool isMeanDatasSaved () const
 check if mean data elements are saved
 
function to ask if save elements before close/quit
GNEDialog::Result askSaveNetwork (bool &abortSaving) const
 warns about unsaved changes in network and gives the user the option to abort
 
GNEDialog::Result askSaveAdditionalElements (bool &abortSaving) const
 warns about unsaved changes in additionals and gives the user the option to abort
 
GNEDialog::Result askSaveDemandElements (bool &abortSaving) const
 warns about unsaved changes in demand elements and gives the user the option to abort
 
GNEDialog::Result askSaveDataElements (bool &abortSaving) const
 warns about unsaved changes in data elements and gives the user the option to abort
 
GNEDialog::Result askSaveMeanDataElements (bool &abortSaving) const
 warns about unsaved changes in meanData elements and gives the user the option to abort
 

Private Member Functions

SavingStatusoperator= (const SavingStatus &)=delete
 Invalidated assignment operator.
 
 SavingStatus ()=delete
 invalidate default constructor
 
 SavingStatus (const SavingStatus &)=delete
 Invalidated copy constructor.
 

Private Attributes

bool myAdditionalSaved = true
 flag for additional elements saved
 
bool myDataElementSaved = true
 flag for data elements saved
 
bool myDemandElementSaved = true
 flag for demand elements saved
 
bool myEdgeTypeSaved = true
 flag for edgeType saved
 
bool myMeanDataElementSaved = true
 flag for meanData elements saved
 
GNENetmyNet
 pointer to net
 
bool myNeteditConfigSaved = true
 flag for netedit config saved
 
bool myNetworkSaved = true
 flag for network saved
 
bool mySumoConfigSaved = true
 flag for SumoConfigSumoConfig saved
 
bool myTLSSaved = true
 flag for TLS saved
 

Detailed Description

modul for Saving status

Definition at line 1045 of file GNENetHelper.h.

Constructor & Destructor Documentation

◆ SavingStatus() [1/3]

GNENetHelper::SavingStatus::SavingStatus ( GNENet net)

constructor

Definition at line 3416 of file GNENetHelper.cpp.

◆ SavingStatus() [2/3]

GNENetHelper::SavingStatus::SavingStatus ( )
privatedelete

invalidate default constructor

◆ SavingStatus() [3/3]

GNENetHelper::SavingStatus::SavingStatus ( const SavingStatus )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ additionalsSaved()

void GNENetHelper::SavingStatus::additionalsSaved ( )

mark additionals as saved

Definition at line 3525 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadAdditionalElements(), GNEApplicationWindow::onCmdOpenAdditionalElements(), and GNENet::saveAdditionalsConfirmed().

Here is the caller graph for this function:

◆ askSaveAdditionalElements()

GNEDialog::Result GNENetHelper::SavingStatus::askSaveAdditionalElements ( bool &  abortSaving) const

warns about unsaved changes in additionals and gives the user the option to abort

Definition at line 3624 of file GNENetHelper.cpp.

References GNEDialog::ABORT, GNEDialog::CANCEL, GNEDialog::SAVE_DONTSAVE_CANCEL, and TL.

Referenced by GNEApplicationWindow::askSaveElements().

Here is the caller graph for this function:

◆ askSaveDataElements()

GNEDialog::Result GNENetHelper::SavingStatus::askSaveDataElements ( bool &  abortSaving) const

warns about unsaved changes in data elements and gives the user the option to abort

Definition at line 3672 of file GNENetHelper.cpp.

References GNEDialog::ABORT, GNEDialog::CANCEL, GNEDialog::SAVE_DONTSAVE_CANCEL, and TL.

Referenced by GNEApplicationWindow::askSaveElements().

Here is the caller graph for this function:

◆ askSaveDemandElements()

GNEDialog::Result GNENetHelper::SavingStatus::askSaveDemandElements ( bool &  abortSaving) const

warns about unsaved changes in demand elements and gives the user the option to abort

Definition at line 3648 of file GNENetHelper.cpp.

References GNEDialog::ABORT, GNEDialog::CANCEL, GNEDialog::SAVE_DONTSAVE_CANCEL, and TL.

Referenced by GNEApplicationWindow::askSaveElements().

Here is the caller graph for this function:

◆ askSaveMeanDataElements()

GNEDialog::Result GNENetHelper::SavingStatus::askSaveMeanDataElements ( bool &  abortSaving) const

warns about unsaved changes in meanData elements and gives the user the option to abort

Definition at line 3696 of file GNENetHelper.cpp.

References GNEDialog::ABORT, GNEDialog::CANCEL, GNEDialog::SAVE_DONTSAVE_CANCEL, and TL.

Referenced by GNEApplicationWindow::askSaveElements().

Here is the caller graph for this function:

◆ askSaveNetwork()

GNEDialog::Result GNENetHelper::SavingStatus::askSaveNetwork ( bool &  abortSaving) const

warns about unsaved changes in network and gives the user the option to abort

Definition at line 3600 of file GNENetHelper.cpp.

References GNEDialog::ABORT, GNEDialog::CANCEL, GNEDialog::SAVE_DONTSAVE_CANCEL, and TL.

Referenced by GNEApplicationWindow::askSaveElements().

Here is the caller graph for this function:

◆ dataElementsSaved()

void GNENetHelper::SavingStatus::dataElementsSaved ( )

mark demand elements as saved

Definition at line 3567 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadDataElements(), GNEApplicationWindow::onCmdOpenDataElements(), and GNENet::saveDataElementsConfirmed().

Here is the caller graph for this function:

◆ demandElementsSaved()

void GNENetHelper::SavingStatus::demandElementsSaved ( )

mark demand elements as saved

Definition at line 3546 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadDemandElements(), GNEApplicationWindow::onCmdOpenDemandElements(), and GNENet::saveDemandElementsConfirmed().

Here is the caller graph for this function:

◆ edgeTypeSaved()

void GNENetHelper::SavingStatus::edgeTypeSaved ( )

mark edgeType as saved

Definition at line 3504 of file GNENetHelper.cpp.

◆ isAdditionalsSaved()

bool GNENetHelper::SavingStatus::isAdditionalsSaved ( ) const

check if additionals are saved

Definition at line 3531 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdOpenAdditionalElements(), GNEApplicationWindow::onCmdSaveAdditionalElements(), GNEApplicationWindow::onUpdSaveAdditionalElements(), and GNEApplicationWindow::onUpdSaveNeteditConfig().

Here is the caller graph for this function:

◆ isDataElementsSaved()

bool GNENetHelper::SavingStatus::isDataElementsSaved ( ) const

check if data elements are saved

Definition at line 3573 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdSaveDataElements(), GNEApplicationWindow::onUpdSaveDataElements(), and GNEApplicationWindow::onUpdSaveNeteditConfig().

Here is the caller graph for this function:

◆ isDemandElementsSaved()

bool GNENetHelper::SavingStatus::isDemandElementsSaved ( ) const

check if demand elements are saved

Definition at line 3552 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdSaveDemandElements(), GNEApplicationWindow::onUpdSaveDemandElements(), and GNEApplicationWindow::onUpdSaveNeteditConfig().

Here is the caller graph for this function:

◆ isEdgeTypeSaved()

bool GNENetHelper::SavingStatus::isEdgeTypeSaved ( ) const

check if edgeType are saved

Definition at line 3510 of file GNENetHelper.cpp.

◆ isMeanDatasSaved()

bool GNENetHelper::SavingStatus::isMeanDatasSaved ( ) const

check if mean data elements are saved

Definition at line 3594 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdOpenMeanDataElements(), GNEApplicationWindow::onCmdSaveMeanDataElements(), GNEApplicationWindow::onUpdSaveMeanDataElements(), and GNEApplicationWindow::onUpdSaveNeteditConfig().

Here is the caller graph for this function:

◆ isNeteditConfigSaved()

bool GNENetHelper::SavingStatus::isNeteditConfigSaved ( ) const

check if netedit config is saved

Definition at line 3453 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onUpdSaveNeteditConfig().

Here is the caller graph for this function:

◆ isNetworkSaved()

bool GNENetHelper::SavingStatus::isNetworkSaved ( ) const

check if network is saved

Definition at line 3474 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdSaveNetwork(), and GNEApplicationWindow::onUpdSaveNetwork().

Here is the caller graph for this function:

◆ isSumoConfigSaved()

bool GNENetHelper::SavingStatus::isSumoConfigSaved ( ) const

check if SumoConfig is saved

Definition at line 3434 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onUpdSaveSumoConfig().

Here is the caller graph for this function:

◆ isTLSSaved()

bool GNENetHelper::SavingStatus::isTLSSaved ( ) const

check if TLS are saved

Definition at line 3492 of file GNENetHelper.cpp.

◆ meanDatasSaved()

void GNENetHelper::SavingStatus::meanDatasSaved ( )

mark mean data elements as saved

Definition at line 3588 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadMeanDataElements(), GNEApplicationWindow::onCmdOpenMeanDataElements(), and GNENet::saveMeanDatasConfirmed().

Here is the caller graph for this function:

◆ neteditConfigSaved()

void GNENetHelper::SavingStatus::neteditConfigSaved ( )

mark netedit config as saved

Definition at line 3447 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdSaveNeteditConfig().

Here is the caller graph for this function:

◆ networkSaved()

void GNENetHelper::SavingStatus::networkSaved ( )

mark network as saved

Definition at line 3468 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GNENet::saveNetwork().

Here is the caller graph for this function:

◆ operator=()

SavingStatus & GNENetHelper::SavingStatus::operator= ( const SavingStatus )
privatedelete

Invalidated assignment operator.

◆ requireSaveAdditionals()

void GNENetHelper::SavingStatus::requireSaveAdditionals ( )

inform that additionals has to be saved

Definition at line 3516 of file GNENetHelper.cpp.

Referenced by GNEChange_Additional::redo(), GNEChange_Attribute::redo(), GNEChange_TAZSourceSink::redo(), GNEChange_ToggleAttribute::redo(), GNENetworkElement::setNetworkElementID(), GNEChange_Additional::undo(), GNEChange_Attribute::undo(), GNEChange_TAZSourceSink::undo(), and GNEChange_ToggleAttribute::undo().

Here is the caller graph for this function:

◆ requireSaveDataElements()

void GNENetHelper::SavingStatus::requireSaveDataElements ( )

inform that data elements has to be saved

Definition at line 3558 of file GNENetHelper.cpp.

Referenced by GNEChange_Attribute::redo(), GNEChange_DataInterval::redo(), GNEChange_DataSet::redo(), GNEChange_GenericData::redo(), GNEChange_ToggleAttribute::redo(), GNEAdditional::setAdditionalID(), GNENetworkElement::setNetworkElementID(), GNEChange_Attribute::undo(), GNEChange_DataInterval::undo(), GNEChange_DataSet::undo(), GNEChange_GenericData::undo(), and GNEChange_ToggleAttribute::undo().

Here is the caller graph for this function:

◆ requireSaveDemandElements()

void GNENetHelper::SavingStatus::requireSaveDemandElements ( )

inform that demand elements has to be saved

Definition at line 3537 of file GNENetHelper.cpp.

Referenced by GNEChange_Attribute::redo(), GNEChange_Children::redo(), GNEChange_DemandElement::redo(), GNEChange_ToggleAttribute::redo(), GNEAdditional::setAdditionalID(), GNEEdge::setAttribute(), GNENetworkElement::setNetworkElementID(), GNEChange_Attribute::undo(), GNEChange_Children::undo(), GNEChange_DemandElement::undo(), and GNEChange_ToggleAttribute::undo().

Here is the caller graph for this function:

◆ requireSaveEdgeType()

void GNENetHelper::SavingStatus::requireSaveEdgeType ( )

inform that edgeType has to be saved

Definition at line 3498 of file GNENetHelper.cpp.

◆ requireSaveMeanDatas()

void GNENetHelper::SavingStatus::requireSaveMeanDatas ( )

inform that mean data elements has to be saved

Definition at line 3579 of file GNENetHelper.cpp.

Referenced by GNEChange_Attribute::redo(), GNEChange_MeanData::redo(), GNEChange_ToggleAttribute::redo(), GNEChange_Attribute::undo(), GNEChange_MeanData::undo(), and GNEChange_ToggleAttribute::undo().

Here is the caller graph for this function:

◆ requireSaveNeteditConfig()

void GNENetHelper::SavingStatus::requireSaveNeteditConfig ( )

inform that netedit config has to be saved

Definition at line 3441 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdOpenOptionsDialog().

Here is the caller graph for this function:

◆ requireSaveNetwork()

◆ requireSaveSumoConfig()

void GNENetHelper::SavingStatus::requireSaveSumoConfig ( )

inform that SumoConfig has to be saved

Definition at line 3422 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdOpenSumoOptionsDialog().

Here is the caller graph for this function:

◆ requireSaveTLS()

void GNENetHelper::SavingStatus::requireSaveTLS ( )

inform that TLS has to be saved

Definition at line 3480 of file GNENetHelper.cpp.

◆ SumoConfigSaved()

void GNENetHelper::SavingStatus::SumoConfigSaved ( )

mark SumoConfig as saved

Definition at line 3428 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdSaveSumoConfig().

Here is the caller graph for this function:

◆ TLSSaved()

void GNENetHelper::SavingStatus::TLSSaved ( )

mark TLS as saved

Definition at line 3486 of file GNENetHelper.cpp.

Referenced by GNENet::saveTLSPrograms().

Here is the caller graph for this function:

Field Documentation

◆ myAdditionalSaved

bool GNENetHelper::SavingStatus::myAdditionalSaved = true
private

flag for additional elements saved

Definition at line 1217 of file GNENetHelper.h.

◆ myDataElementSaved

bool GNENetHelper::SavingStatus::myDataElementSaved = true
private

flag for data elements saved

Definition at line 1223 of file GNENetHelper.h.

◆ myDemandElementSaved

bool GNENetHelper::SavingStatus::myDemandElementSaved = true
private

flag for demand elements saved

Definition at line 1220 of file GNENetHelper.h.

◆ myEdgeTypeSaved

bool GNENetHelper::SavingStatus::myEdgeTypeSaved = true
private

flag for edgeType saved

Definition at line 1214 of file GNENetHelper.h.

◆ myMeanDataElementSaved

bool GNENetHelper::SavingStatus::myMeanDataElementSaved = true
private

flag for meanData elements saved

Definition at line 1226 of file GNENetHelper.h.

◆ myNet

GNENet* GNENetHelper::SavingStatus::myNet
private

pointer to net

Definition at line 1199 of file GNENetHelper.h.

◆ myNeteditConfigSaved

bool GNENetHelper::SavingStatus::myNeteditConfigSaved = true
private

flag for netedit config saved

Definition at line 1205 of file GNENetHelper.h.

◆ myNetworkSaved

bool GNENetHelper::SavingStatus::myNetworkSaved = true
private

flag for network saved

Definition at line 1208 of file GNENetHelper.h.

◆ mySumoConfigSaved

bool GNENetHelper::SavingStatus::mySumoConfigSaved = true
private

flag for SumoConfigSumoConfig saved

Definition at line 1202 of file GNENetHelper.h.

◆ myTLSSaved

bool GNENetHelper::SavingStatus::myTLSSaved = true
private

flag for TLS saved

Definition at line 1211 of file GNENetHelper.h.


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