![]() |
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 923 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 927 of file GNENetHelper.h.
GNENetHelper::SavingFilesHandler::SavingFilesHandler | ( | GNENet * | net | ) |
constructor
Definition at line 3091 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 3136 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 3276 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 3208 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 3334 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 3201 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdOpenAdditionalElements().
bool GNENetHelper::SavingFilesHandler::existDataFilename | ( | const std::string & | file | ) | const |
check if the given data file was already registered
Definition at line 3327 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdOpenDataElements().
bool GNENetHelper::SavingFilesHandler::existDemandFilename | ( | const std::string & | file | ) | const |
check if the given demand file was already registered
Definition at line 3269 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdOpenDemandElements().
bool GNENetHelper::SavingFilesHandler::existMeanDataFilename | ( | const std::string & | file | ) | const |
check if the given meanData file was already registered
Definition at line 3393 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdOpenMeanDataElements().
const std::vector< std::string > & GNENetHelper::SavingFilesHandler::getAdditionalFilenames | ( | ) | const |
get vector with additional elements saving files (starting with default)
Definition at line 3168 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 3174 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 3302 of file GNENetHelper.cpp.
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onCmdReloadDataElements(), GNEApplicationWindow::onCmdReloadMeanDataElements(), GNEApplicationWindow::onUpdReloadDataElements(), and GNEAttributeCarrier::setCommonAttribute().
GNENetHelper::SavingFilesHandler::ACsbyFilename GNENetHelper::SavingFilesHandler::getDatasByFilename | ( | ) |
get datas sorted by filenames (and also clear unused filenames)
Definition at line 3308 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 3240 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 3246 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 3366 of file GNENetHelper.cpp.
Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onUpdReloadMeanDataElements(), and GNEAttributeCarrier::setCommonAttribute().
GNENetHelper::SavingFilesHandler::ACsbyFilename GNENetHelper::SavingFilesHandler::getMeanDatasByFilename | ( | ) |
get meanDatas sorted by filenames (and also clear unused filenames)
Definition at line 3372 of file GNENetHelper.cpp.
Referenced by GNENet::saveMeanDatasConfirmed().
|
privatedelete |
Invalidated assignment operator.
|
private |
parsing saving files
Definition at line 3400 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 3148 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded().
void GNENetHelper::SavingFilesHandler::updateDataEmptyFilenames | ( | const std::string & | file | ) |
update data elements with empty filenames with the given file
Definition at line 3288 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded().
void GNENetHelper::SavingFilesHandler::updateDemandEmptyFilenames | ( | const std::string & | file | ) |
update demand elements with empty filenames with the given file
Definition at line 3220 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded().
void GNENetHelper::SavingFilesHandler::updateMeanDataEmptyFilenames | ( | const std::string & | file | ) |
update meanData elements with empty filenames with the given file
Definition at line 3346 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded().
void GNENetHelper::SavingFilesHandler::updateNeteditConfig | ( | ) |
update netedit config
Definition at line 3097 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 1020 of file GNENetHelper.h.
|
private |
vector with data elements saving files
Definition at line 1026 of file GNENetHelper.h.
|
private |
vector with demand elements saving files
Definition at line 1023 of file GNENetHelper.h.
|
private |
vector with mean data elements saving files
Definition at line 1029 of file GNENetHelper.h.
|
private |
pointer to net
Definition at line 1017 of file GNENetHelper.h.