![]() |
Eclipse SUMO - Simulation of Urban MObility
|
modul for Saving status More...
#include <GNENetHelper.h>
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 (GNEDialog::Result &commonResult) const |
| warns about unsaved changes in network and gives the user the option to abort | |
| GNEDialog::Result | askSaveAdditionalElements (GNEDialog::Result &commonResult) const |
| warns about unsaved changes in additionals and gives the user the option to abort | |
| GNEDialog::Result | askSaveDemandElements (GNEDialog::Result &commonResult) const |
| warns about unsaved changes in demand elements and gives the user the option to abort | |
| GNEDialog::Result | askSaveDataElements (GNEDialog::Result &commonResult) const |
| warns about unsaved changes in data elements and gives the user the option to abort | |
| GNEDialog::Result | askSaveMeanDataElements (GNEDialog::Result &commonResult) const |
| warns about unsaved changes in meanData elements and gives the user the option to abort | |
Private Member Functions | |
| SavingStatus & | operator= (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 | |
| GNENet * | myNet |
| 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 | |
modul for Saving status
Definition at line 1050 of file GNENetHelper.h.
| GNENetHelper::SavingStatus::SavingStatus | ( | GNENet * | net | ) |
constructor
Definition at line 3436 of file GNENetHelper.cpp.
References myNet.
Referenced by operator=(), and SavingStatus().
|
privatedelete |
invalidate default constructor
|
privatedelete |
Invalidated copy constructor.
References SavingStatus().
| void GNENetHelper::SavingStatus::additionalsSaved | ( | ) |
mark additionals as saved
Definition at line 3545 of file GNENetHelper.cpp.
References myAdditionalSaved.
| GNEDialog::Result GNENetHelper::SavingStatus::askSaveAdditionalElements | ( | GNEDialog::Result & | commonResult | ) | const |
warns about unsaved changes in additionals and gives the user the option to abort
Definition at line 3652 of file GNENetHelper.cpp.
References GNEDialog::ABORT, GNEDialog::ACCEPT, GNEDialog::ACCEPT_ALL, GNEDialog::CANCEL, GNEDialog::CANCEL_ALL, myAdditionalSaved, myNet, and TL.
| GNEDialog::Result GNENetHelper::SavingStatus::askSaveDataElements | ( | GNEDialog::Result & | commonResult | ) | const |
warns about unsaved changes in data elements and gives the user the option to abort
Definition at line 3716 of file GNENetHelper.cpp.
References GNEDialog::ABORT, GNEDialog::ACCEPT, GNEDialog::ACCEPT_ALL, GNEDialog::CANCEL, GNEDialog::CANCEL_ALL, myDataElementSaved, myNet, and TL.
| GNEDialog::Result GNENetHelper::SavingStatus::askSaveDemandElements | ( | GNEDialog::Result & | commonResult | ) | const |
warns about unsaved changes in demand elements and gives the user the option to abort
Definition at line 3684 of file GNENetHelper.cpp.
References GNEDialog::ABORT, GNEDialog::ACCEPT, GNEDialog::ACCEPT_ALL, GNEDialog::CANCEL, GNEDialog::CANCEL_ALL, myDemandElementSaved, myNet, and TL.
| GNEDialog::Result GNENetHelper::SavingStatus::askSaveMeanDataElements | ( | GNEDialog::Result & | commonResult | ) | const |
warns about unsaved changes in meanData elements and gives the user the option to abort
Definition at line 3748 of file GNENetHelper.cpp.
References GNEDialog::ABORT, GNEDialog::ACCEPT, GNEDialog::ACCEPT_ALL, GNEDialog::CANCEL, GNEDialog::CANCEL_ALL, myMeanDataElementSaved, myNet, and TL.
| GNEDialog::Result GNENetHelper::SavingStatus::askSaveNetwork | ( | GNEDialog::Result & | commonResult | ) | const |
warns about unsaved changes in network and gives the user the option to abort
Definition at line 3620 of file GNENetHelper.cpp.
References GNEDialog::ABORT, GNEDialog::ACCEPT, GNEDialog::ACCEPT_ALL, GNEDialog::CANCEL, GNEDialog::CANCEL_ALL, myNet, myNetworkSaved, and TL.
| void GNENetHelper::SavingStatus::dataElementsSaved | ( | ) |
mark demand elements as saved
Definition at line 3587 of file GNENetHelper.cpp.
References myDataElementSaved.
| void GNENetHelper::SavingStatus::demandElementsSaved | ( | ) |
mark demand elements as saved
Definition at line 3566 of file GNENetHelper.cpp.
References myDemandElementSaved.
| void GNENetHelper::SavingStatus::edgeTypeSaved | ( | ) |
mark edgeType as saved
Definition at line 3524 of file GNENetHelper.cpp.
References myEdgeTypeSaved.
| bool GNENetHelper::SavingStatus::isAdditionalsSaved | ( | ) | const |
check if additionals are saved
Definition at line 3551 of file GNENetHelper.cpp.
References myAdditionalSaved.
| bool GNENetHelper::SavingStatus::isDataElementsSaved | ( | ) | const |
check if data elements are saved
Definition at line 3593 of file GNENetHelper.cpp.
References myDataElementSaved.
| bool GNENetHelper::SavingStatus::isDemandElementsSaved | ( | ) | const |
check if demand elements are saved
Definition at line 3572 of file GNENetHelper.cpp.
References myDemandElementSaved.
| bool GNENetHelper::SavingStatus::isEdgeTypeSaved | ( | ) | const |
check if edgeType are saved
Definition at line 3530 of file GNENetHelper.cpp.
References myEdgeTypeSaved.
| bool GNENetHelper::SavingStatus::isMeanDatasSaved | ( | ) | const |
check if mean data elements are saved
Definition at line 3614 of file GNENetHelper.cpp.
References myMeanDataElementSaved.
| bool GNENetHelper::SavingStatus::isNeteditConfigSaved | ( | ) | const |
check if netedit config is saved
Definition at line 3473 of file GNENetHelper.cpp.
References myNeteditConfigSaved.
| bool GNENetHelper::SavingStatus::isNetworkSaved | ( | ) | const |
check if network is saved
Definition at line 3494 of file GNENetHelper.cpp.
References myNetworkSaved.
| bool GNENetHelper::SavingStatus::isSumoConfigSaved | ( | ) | const |
check if SumoConfig is saved
Definition at line 3454 of file GNENetHelper.cpp.
References mySumoConfigSaved.
| bool GNENetHelper::SavingStatus::isTLSSaved | ( | ) | const |
| void GNENetHelper::SavingStatus::meanDatasSaved | ( | ) |
mark mean data elements as saved
Definition at line 3608 of file GNENetHelper.cpp.
References myMeanDataElementSaved.
| void GNENetHelper::SavingStatus::neteditConfigSaved | ( | ) |
mark netedit config as saved
Definition at line 3467 of file GNENetHelper.cpp.
References myNeteditConfigSaved.
| void GNENetHelper::SavingStatus::networkSaved | ( | ) |
|
privatedelete |
Invalidated assignment operator.
References SavingStatus().
| void GNENetHelper::SavingStatus::requireSaveAdditionals | ( | ) |
inform that additionals has to be saved
Definition at line 3536 of file GNENetHelper.cpp.
References myAdditionalSaved, myNeteditConfigSaved, and mySumoConfigSaved.
| void GNENetHelper::SavingStatus::requireSaveDataElements | ( | ) |
inform that data elements has to be saved
Definition at line 3578 of file GNENetHelper.cpp.
References myDataElementSaved, myNeteditConfigSaved, and mySumoConfigSaved.
| void GNENetHelper::SavingStatus::requireSaveDemandElements | ( | ) |
inform that demand elements has to be saved
Definition at line 3557 of file GNENetHelper.cpp.
References myDemandElementSaved, myNeteditConfigSaved, and mySumoConfigSaved.
| void GNENetHelper::SavingStatus::requireSaveEdgeType | ( | ) |
inform that edgeType has to be saved
Definition at line 3518 of file GNENetHelper.cpp.
References myEdgeTypeSaved.
| void GNENetHelper::SavingStatus::requireSaveMeanDatas | ( | ) |
inform that mean data elements has to be saved
Definition at line 3599 of file GNENetHelper.cpp.
References myMeanDataElementSaved, myNeteditConfigSaved, and mySumoConfigSaved.
| void GNENetHelper::SavingStatus::requireSaveNeteditConfig | ( | ) |
inform that netedit config has to be saved
Definition at line 3461 of file GNENetHelper.cpp.
References myNeteditConfigSaved.
| void GNENetHelper::SavingStatus::requireSaveNetwork | ( | ) |
inform that network has to be saved
Definition at line 3479 of file GNENetHelper.cpp.
References myNeteditConfigSaved, myNetworkSaved, and mySumoConfigSaved.
| void GNENetHelper::SavingStatus::requireSaveSumoConfig | ( | ) |
inform that SumoConfig has to be saved
Definition at line 3442 of file GNENetHelper.cpp.
References mySumoConfigSaved.
| void GNENetHelper::SavingStatus::requireSaveTLS | ( | ) |
inform that TLS has to be saved
Definition at line 3500 of file GNENetHelper.cpp.
References myTLSSaved.
| void GNENetHelper::SavingStatus::SumoConfigSaved | ( | ) |
mark SumoConfig as saved
Definition at line 3448 of file GNENetHelper.cpp.
References mySumoConfigSaved.
| void GNENetHelper::SavingStatus::TLSSaved | ( | ) |
|
private |
flag for additional elements saved
Definition at line 1222 of file GNENetHelper.h.
Referenced by additionalsSaved(), askSaveAdditionalElements(), isAdditionalsSaved(), and requireSaveAdditionals().
|
private |
flag for data elements saved
Definition at line 1228 of file GNENetHelper.h.
Referenced by askSaveDataElements(), dataElementsSaved(), isDataElementsSaved(), and requireSaveDataElements().
|
private |
flag for demand elements saved
Definition at line 1225 of file GNENetHelper.h.
Referenced by askSaveDemandElements(), demandElementsSaved(), isDemandElementsSaved(), and requireSaveDemandElements().
|
private |
flag for edgeType saved
Definition at line 1219 of file GNENetHelper.h.
Referenced by edgeTypeSaved(), isEdgeTypeSaved(), and requireSaveEdgeType().
|
private |
flag for meanData elements saved
Definition at line 1231 of file GNENetHelper.h.
Referenced by askSaveMeanDataElements(), isMeanDatasSaved(), meanDatasSaved(), and requireSaveMeanDatas().
|
private |
pointer to net
Definition at line 1204 of file GNENetHelper.h.
Referenced by askSaveAdditionalElements(), askSaveDataElements(), askSaveDemandElements(), askSaveMeanDataElements(), askSaveNetwork(), and SavingStatus().
|
private |
flag for netedit config saved
Definition at line 1210 of file GNENetHelper.h.
Referenced by isNeteditConfigSaved(), neteditConfigSaved(), requireSaveAdditionals(), requireSaveDataElements(), requireSaveDemandElements(), requireSaveMeanDatas(), requireSaveNeteditConfig(), and requireSaveNetwork().
|
private |
flag for network saved
Definition at line 1213 of file GNENetHelper.h.
Referenced by askSaveNetwork(), isNetworkSaved(), networkSaved(), and requireSaveNetwork().
|
private |
flag for SumoConfigSumoConfig saved
Definition at line 1207 of file GNENetHelper.h.
Referenced by isSumoConfigSaved(), requireSaveAdditionals(), requireSaveDataElements(), requireSaveDemandElements(), requireSaveMeanDatas(), requireSaveNetwork(), requireSaveSumoConfig(), and SumoConfigSaved().
|
private |
flag for TLS saved
Definition at line 1216 of file GNENetHelper.h.
Referenced by isTLSSaved(), requireSaveTLS(), and TLSSaved().