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 (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

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 1050 of file GNENetHelper.h.

Constructor & Destructor Documentation

◆ SavingStatus() [1/3]

GNENetHelper::SavingStatus::SavingStatus ( GNENet * net)

constructor

Definition at line 3436 of file GNENetHelper.cpp.

References myNet.

Referenced by operator=(), and SavingStatus().

Here is the caller graph for this function:

◆ SavingStatus() [2/3]

GNENetHelper::SavingStatus::SavingStatus ( )
privatedelete

invalidate default constructor

◆ SavingStatus() [3/3]

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

Invalidated copy constructor.

References SavingStatus().

Member Function Documentation

◆ additionalsSaved()

void GNENetHelper::SavingStatus::additionalsSaved ( )

mark additionals as saved

Definition at line 3545 of file GNENetHelper.cpp.

References myAdditionalSaved.

◆ askSaveAdditionalElements()

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.

◆ askSaveDataElements()

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.

◆ askSaveDemandElements()

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.

◆ askSaveMeanDataElements()

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.

◆ askSaveNetwork()

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.

◆ dataElementsSaved()

void GNENetHelper::SavingStatus::dataElementsSaved ( )

mark demand elements as saved

Definition at line 3587 of file GNENetHelper.cpp.

References myDataElementSaved.

◆ demandElementsSaved()

void GNENetHelper::SavingStatus::demandElementsSaved ( )

mark demand elements as saved

Definition at line 3566 of file GNENetHelper.cpp.

References myDemandElementSaved.

◆ edgeTypeSaved()

void GNENetHelper::SavingStatus::edgeTypeSaved ( )

mark edgeType as saved

Definition at line 3524 of file GNENetHelper.cpp.

References myEdgeTypeSaved.

◆ isAdditionalsSaved()

bool GNENetHelper::SavingStatus::isAdditionalsSaved ( ) const

check if additionals are saved

Definition at line 3551 of file GNENetHelper.cpp.

References myAdditionalSaved.

◆ isDataElementsSaved()

bool GNENetHelper::SavingStatus::isDataElementsSaved ( ) const

check if data elements are saved

Definition at line 3593 of file GNENetHelper.cpp.

References myDataElementSaved.

◆ isDemandElementsSaved()

bool GNENetHelper::SavingStatus::isDemandElementsSaved ( ) const

check if demand elements are saved

Definition at line 3572 of file GNENetHelper.cpp.

References myDemandElementSaved.

◆ isEdgeTypeSaved()

bool GNENetHelper::SavingStatus::isEdgeTypeSaved ( ) const

check if edgeType are saved

Definition at line 3530 of file GNENetHelper.cpp.

References myEdgeTypeSaved.

◆ isMeanDatasSaved()

bool GNENetHelper::SavingStatus::isMeanDatasSaved ( ) const

check if mean data elements are saved

Definition at line 3614 of file GNENetHelper.cpp.

References myMeanDataElementSaved.

◆ isNeteditConfigSaved()

bool GNENetHelper::SavingStatus::isNeteditConfigSaved ( ) const

check if netedit config is saved

Definition at line 3473 of file GNENetHelper.cpp.

References myNeteditConfigSaved.

◆ isNetworkSaved()

bool GNENetHelper::SavingStatus::isNetworkSaved ( ) const

check if network is saved

Definition at line 3494 of file GNENetHelper.cpp.

References myNetworkSaved.

◆ isSumoConfigSaved()

bool GNENetHelper::SavingStatus::isSumoConfigSaved ( ) const

check if SumoConfig is saved

Definition at line 3454 of file GNENetHelper.cpp.

References mySumoConfigSaved.

◆ isTLSSaved()

bool GNENetHelper::SavingStatus::isTLSSaved ( ) const

check if TLS are saved

Definition at line 3512 of file GNENetHelper.cpp.

References myTLSSaved.

◆ meanDatasSaved()

void GNENetHelper::SavingStatus::meanDatasSaved ( )

mark mean data elements as saved

Definition at line 3608 of file GNENetHelper.cpp.

References myMeanDataElementSaved.

◆ neteditConfigSaved()

void GNENetHelper::SavingStatus::neteditConfigSaved ( )

mark netedit config as saved

Definition at line 3467 of file GNENetHelper.cpp.

References myNeteditConfigSaved.

◆ networkSaved()

void GNENetHelper::SavingStatus::networkSaved ( )

mark network as saved

Definition at line 3488 of file GNENetHelper.cpp.

References myNetworkSaved.

◆ operator=()

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

Invalidated assignment operator.

References SavingStatus().

◆ requireSaveAdditionals()

void GNENetHelper::SavingStatus::requireSaveAdditionals ( )

inform that additionals has to be saved

Definition at line 3536 of file GNENetHelper.cpp.

References myAdditionalSaved, myNeteditConfigSaved, and mySumoConfigSaved.

◆ requireSaveDataElements()

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.

◆ requireSaveDemandElements()

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.

◆ requireSaveEdgeType()

void GNENetHelper::SavingStatus::requireSaveEdgeType ( )

inform that edgeType has to be saved

Definition at line 3518 of file GNENetHelper.cpp.

References myEdgeTypeSaved.

◆ requireSaveMeanDatas()

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.

◆ requireSaveNeteditConfig()

void GNENetHelper::SavingStatus::requireSaveNeteditConfig ( )

inform that netedit config has to be saved

Definition at line 3461 of file GNENetHelper.cpp.

References myNeteditConfigSaved.

◆ requireSaveNetwork()

void GNENetHelper::SavingStatus::requireSaveNetwork ( )

inform that network has to be saved

Definition at line 3479 of file GNENetHelper.cpp.

References myNeteditConfigSaved, myNetworkSaved, and mySumoConfigSaved.

◆ requireSaveSumoConfig()

void GNENetHelper::SavingStatus::requireSaveSumoConfig ( )

inform that SumoConfig has to be saved

Definition at line 3442 of file GNENetHelper.cpp.

References mySumoConfigSaved.

◆ requireSaveTLS()

void GNENetHelper::SavingStatus::requireSaveTLS ( )

inform that TLS has to be saved

Definition at line 3500 of file GNENetHelper.cpp.

References myTLSSaved.

◆ SumoConfigSaved()

void GNENetHelper::SavingStatus::SumoConfigSaved ( )

mark SumoConfig as saved

Definition at line 3448 of file GNENetHelper.cpp.

References mySumoConfigSaved.

◆ TLSSaved()

void GNENetHelper::SavingStatus::TLSSaved ( )

mark TLS as saved

Definition at line 3506 of file GNENetHelper.cpp.

References myTLSSaved.

Field Documentation

◆ myAdditionalSaved

bool GNENetHelper::SavingStatus::myAdditionalSaved = true
private

flag for additional elements saved

Definition at line 1222 of file GNENetHelper.h.

Referenced by additionalsSaved(), askSaveAdditionalElements(), isAdditionalsSaved(), and requireSaveAdditionals().

◆ myDataElementSaved

bool GNENetHelper::SavingStatus::myDataElementSaved = true
private

flag for data elements saved

Definition at line 1228 of file GNENetHelper.h.

Referenced by askSaveDataElements(), dataElementsSaved(), isDataElementsSaved(), and requireSaveDataElements().

◆ myDemandElementSaved

bool GNENetHelper::SavingStatus::myDemandElementSaved = true
private

flag for demand elements saved

Definition at line 1225 of file GNENetHelper.h.

Referenced by askSaveDemandElements(), demandElementsSaved(), isDemandElementsSaved(), and requireSaveDemandElements().

◆ myEdgeTypeSaved

bool GNENetHelper::SavingStatus::myEdgeTypeSaved = true
private

flag for edgeType saved

Definition at line 1219 of file GNENetHelper.h.

Referenced by edgeTypeSaved(), isEdgeTypeSaved(), and requireSaveEdgeType().

◆ myMeanDataElementSaved

bool GNENetHelper::SavingStatus::myMeanDataElementSaved = true
private

flag for meanData elements saved

Definition at line 1231 of file GNENetHelper.h.

Referenced by askSaveMeanDataElements(), isMeanDatasSaved(), meanDatasSaved(), and requireSaveMeanDatas().

◆ myNet

GNENet* GNENetHelper::SavingStatus::myNet
private

◆ myNeteditConfigSaved

bool GNENetHelper::SavingStatus::myNeteditConfigSaved = true
private

◆ myNetworkSaved

bool GNENetHelper::SavingStatus::myNetworkSaved = true
private

flag for network saved

Definition at line 1213 of file GNENetHelper.h.

Referenced by askSaveNetwork(), isNetworkSaved(), networkSaved(), and requireSaveNetwork().

◆ mySumoConfigSaved

bool GNENetHelper::SavingStatus::mySumoConfigSaved = true
private

◆ myTLSSaved

bool GNENetHelper::SavingStatus::myTLSSaved = true
private

flag for TLS saved

Definition at line 1216 of file GNENetHelper.h.

Referenced by isTLSSaved(), requireSaveTLS(), and TLSSaved().


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