![]() |
Eclipse SUMO - Simulation of Urban MObility
|
modul for handling saving files More...
#include <GNENetHelper.h>
Public Types | |
| typedef std::map< std::string, std::unordered_set< const GNEAttributeCarrier * > > | ACsbyFilename |
| typedef used for group ACs by filename | |
Public Member Functions | |
| SavingFilesHandler (GNENet *net) | |
| constructor | |
| void | updateNeteditConfig () |
| update netedit config | |
| void | addAdditionalFilename (const GNEAttributeCarrier *additionalElement) |
| additional elements | |
| void | updateAdditionalEmptyFilenames (const std::string &file) |
| update additional elements with empty filenames with the given file | |
| const std::vector< std::string > & | getAdditionalFilenames () const |
| get vector with additional elements saving files (starting with default) | |
| ACsbyFilename | getAdditionalsByFilename () |
| get additionals sorted by filenames (and also clear unused filenames) | |
| bool | existAdditionalFilename (const std::string &file) const |
| check if the given additional file was already registered | |
| void | addDemandFilename (const GNEAttributeCarrier *demandElement) |
| demand elements | |
| void | updateDemandEmptyFilenames (const std::string &file) |
| update demand elements with empty filenames with the given file | |
| const std::vector< std::string > & | getDemandFilenames () const |
| get vector with demand elements saving files (starting with default) | |
| ACsbyFilename | getDemandsByFilename () |
| get demands sorted by filenames (and also clear unused filenames) | |
| bool | existDemandFilename (const std::string &file) const |
| check if the given demand file was already registered | |
| void | addDataFilename (const GNEAttributeCarrier *dataElement) |
| data elements | |
| void | updateDataEmptyFilenames (const std::string &file) |
| update data elements with empty filenames with the given file | |
| const std::vector< std::string > & | getDataFilenames () const |
| get vector with data elements saving files (starting with default) | |
| ACsbyFilename | getDatasByFilename () |
| get datas sorted by filenames (and also clear unused filenames) | |
| bool | existDataFilename (const std::string &file) const |
| check if the given data file was already registered | |
| void | addMeanDataFilename (const GNEAttributeCarrier *meanDataElement) |
| meanData elements | |
| void | updateMeanDataEmptyFilenames (const std::string &file) |
| update meanData elements with empty filenames with the given file | |
| const std::vector< std::string > & | getMeanDataFilenames () const |
| get vector with meanData elements saving files (starting with default) | |
| ACsbyFilename | getMeanDatasByFilename () |
| get meanDatas sorted by filenames (and also clear unused filenames) | |
| bool | existMeanDataFilename (const std::string &file) const |
| check if the given meanData file was already registered | |
Private Member Functions | |
| SavingFilesHandler & | operator= (const SavingFilesHandler &)=delete |
| Invalidated assignment operator. | |
| std::string | parsingSavingFiles (const std::vector< std::string > &savingFiles) const |
| parsing saving files | |
| SavingFilesHandler ()=delete | |
| Invalidated default constructor. | |
| SavingFilesHandler (const SavingFilesHandler &)=delete | |
| Invalidated copy constructor. | |
Private Attributes | |
| std::vector< std::string > | myAdditionalElementsSavingFiles |
| vector with additional elements saving files | |
| std::vector< std::string > | myDataElementsSavingFiles |
| vector with data elements saving files | |
| std::vector< std::string > | myDemandElementsSavingFiles |
| vector with demand elements saving files | |
| std::vector< std::string > | myMeanDataElementsSavingFiles |
| vector with mean data elements saving files | |
| GNENet * | myNet |
| pointer to net | |
modul for handling saving files
Definition at line 925 of file GNENetHelper.h.
| typedef std::map<std::string, std::unordered_set<const GNEAttributeCarrier*> > GNENetHelper::SavingFilesHandler::ACsbyFilename |
typedef used for group ACs by filename
Definition at line 929 of file GNENetHelper.h.
| GNENetHelper::SavingFilesHandler::SavingFilesHandler | ( | GNENet * | net | ) |
constructor
Definition at line 3113 of file GNENetHelper.cpp.
|
privatedelete |
Invalidated default constructor.
|
privatedelete |
Invalidated copy constructor.
| void GNENetHelper::SavingFilesHandler::addAdditionalFilename | ( | const GNEAttributeCarrier * | additionalElement | ) |
additional elements
add additional filename
Definition at line 3158 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getFilename().
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), and GNEAttributeCarrier::setCommonAttribute().
| void GNENetHelper::SavingFilesHandler::addDataFilename | ( | const GNEAttributeCarrier * | dataElement | ) |
data elements
add data filename
Definition at line 3298 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getFilename().
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), and GNEAttributeCarrier::setCommonAttribute().
| void GNENetHelper::SavingFilesHandler::addDemandFilename | ( | const GNEAttributeCarrier * | demandElement | ) |
demand elements
add demand filename
Definition at line 3230 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getFilename().
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), and GNEAttributeCarrier::setCommonAttribute().
| void GNENetHelper::SavingFilesHandler::addMeanDataFilename | ( | const GNEAttributeCarrier * | meanDataElement | ) |
meanData elements
add meanData filename
Definition at line 3356 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getFilename().
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), and GNEAttributeCarrier::setCommonAttribute().
| bool GNENetHelper::SavingFilesHandler::existAdditionalFilename | ( | const std::string & | file | ) | const |
check if the given additional file was already registered
Definition at line 3223 of file GNENetHelper.cpp.
| bool GNENetHelper::SavingFilesHandler::existDataFilename | ( | const std::string & | file | ) | const |
check if the given data file was already registered
Definition at line 3349 of file GNENetHelper.cpp.
| bool GNENetHelper::SavingFilesHandler::existDemandFilename | ( | const std::string & | file | ) | const |
check if the given demand file was already registered
Definition at line 3291 of file GNENetHelper.cpp.
| bool GNENetHelper::SavingFilesHandler::existMeanDataFilename | ( | const std::string & | file | ) | const |
check if the given meanData file was already registered
Definition at line 3415 of file GNENetHelper.cpp.
| const std::vector< std::string > & GNENetHelper::SavingFilesHandler::getAdditionalFilenames | ( | ) | const |
get vector with additional elements saving files (starting with default)
Definition at line 3190 of file GNENetHelper.cpp.
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onCmdReloadAdditionalElements(), GNEApplicationWindow::onUpdReloadAdditionalElements(), and GNEAttributeCarrier::setCommonAttribute().
| GNENetHelper::SavingFilesHandler::ACsbyFilename GNENetHelper::SavingFilesHandler::getAdditionalsByFilename | ( | ) |
get additionals sorted by filenames (and also clear unused filenames)
Definition at line 3196 of file GNENetHelper.cpp.
References SUMO_TAG_ROUTE.
Referenced by GNENet::saveAdditionalsConfirmed().
| const std::vector< std::string > & GNENetHelper::SavingFilesHandler::getDataFilenames | ( | ) | const |
get vector with data elements saving files (starting with default)
Definition at line 3324 of file GNENetHelper.cpp.
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onCmdReloadDataElements(), GNEApplicationWindow::onUpdReloadDataElements(), and GNEAttributeCarrier::setCommonAttribute().
| GNENetHelper::SavingFilesHandler::ACsbyFilename GNENetHelper::SavingFilesHandler::getDatasByFilename | ( | ) |
get datas sorted by filenames (and also clear unused filenames)
Definition at line 3330 of file GNENetHelper.cpp.
Referenced by GNENet::saveDataElementsConfirmed().
| const std::vector< std::string > & GNENetHelper::SavingFilesHandler::getDemandFilenames | ( | ) | const |
get vector with demand elements saving files (starting with default)
Definition at line 3262 of file GNENetHelper.cpp.
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onCmdReloadDemandElements(), GNEApplicationWindow::onUpdReloadDemandElements(), and GNEAttributeCarrier::setCommonAttribute().
| GNENetHelper::SavingFilesHandler::ACsbyFilename GNENetHelper::SavingFilesHandler::getDemandsByFilename | ( | ) |
get demands sorted by filenames (and also clear unused filenames)
Definition at line 3268 of file GNENetHelper.cpp.
Referenced by GNENet::saveDemandElementsConfirmed().
| const std::vector< std::string > & GNENetHelper::SavingFilesHandler::getMeanDataFilenames | ( | ) | const |
get vector with meanData elements saving files (starting with default)
Definition at line 3388 of file GNENetHelper.cpp.
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onCmdReloadMeanDataElements(), GNEApplicationWindow::onUpdReloadMeanDataElements(), and GNEAttributeCarrier::setCommonAttribute().
| GNENetHelper::SavingFilesHandler::ACsbyFilename GNENetHelper::SavingFilesHandler::getMeanDatasByFilename | ( | ) |
get meanDatas sorted by filenames (and also clear unused filenames)
Definition at line 3394 of file GNENetHelper.cpp.
Referenced by GNENet::saveMeanDatasConfirmed().
|
privatedelete |
Invalidated assignment operator.
|
private |
parsing saving files
Definition at line 3422 of file GNENetHelper.cpp.
| void GNENetHelper::SavingFilesHandler::updateAdditionalEmptyFilenames | ( | const std::string & | file | ) |
update additional elements with empty filenames with the given file
Definition at line 3170 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::loadAdditionalElements().
| void GNENetHelper::SavingFilesHandler::updateDataEmptyFilenames | ( | const std::string & | file | ) |
update data elements with empty filenames with the given file
Definition at line 3310 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::loadDataElements().
| void GNENetHelper::SavingFilesHandler::updateDemandEmptyFilenames | ( | const std::string & | file | ) |
update demand elements with empty filenames with the given file
Definition at line 3242 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::loadDemandElements().
| void GNENetHelper::SavingFilesHandler::updateMeanDataEmptyFilenames | ( | const std::string & | file | ) |
update meanData elements with empty filenames with the given file
Definition at line 3368 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::loadMeanDataElements().
| void GNENetHelper::SavingFilesHandler::updateNeteditConfig | ( | ) |
update netedit config
Definition at line 3119 of file GNENetHelper.cpp.
References OptionsCont::getOptions().
Referenced by GNEApplicationWindow::onCmdSaveNeteditConfig(), GNEApplicationWindow::onCmdSaveSumoConfig(), GNENet::saveAdditionalsConfirmed(), GNENet::saveDataElementsConfirmed(), GNENet::saveDemandElementsConfirmed(), and GNENet::saveMeanDatasConfirmed().
|
private |
vector with additional elements saving files
Definition at line 1022 of file GNENetHelper.h.
|
private |
vector with data elements saving files
Definition at line 1028 of file GNENetHelper.h.
|
private |
vector with demand elements saving files
Definition at line 1025 of file GNENetHelper.h.
|
private |
vector with mean data elements saving files
Definition at line 1031 of file GNENetHelper.h.
|
private |
pointer to net
Definition at line 1019 of file GNENetHelper.h.