Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GNENetHelper::SavingFilesHandler Class Reference

modul for handling saving files More...

#include <GNENetHelper.h>

Collaboration diagram for GNENetHelper::SavingFilesHandler:
[legend]

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

SavingFilesHandleroperator= (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
 
GNENetmyNet
 pointer to net
 

Detailed Description

modul for handling saving files

Definition at line 923 of file GNENetHelper.h.

Member Typedef Documentation

◆ ACsbyFilename

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.

Constructor & Destructor Documentation

◆ SavingFilesHandler() [1/3]

GNENetHelper::SavingFilesHandler::SavingFilesHandler ( GNENet net)

constructor

Definition at line 3091 of file GNENetHelper.cpp.

◆ SavingFilesHandler() [2/3]

GNENetHelper::SavingFilesHandler::SavingFilesHandler ( )
privatedelete

Invalidated default constructor.

◆ SavingFilesHandler() [3/3]

GNENetHelper::SavingFilesHandler::SavingFilesHandler ( const SavingFilesHandler )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addAdditionalFilename()

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

Here is the caller graph for this function:

◆ addDataFilename()

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

Here is the caller graph for this function:

◆ addDemandFilename()

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

Here is the caller graph for this function:

◆ addMeanDataFilename()

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

Here is the caller graph for this function:

◆ existAdditionalFilename()

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

Here is the caller graph for this function:

◆ existDataFilename()

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

Here is the caller graph for this function:

◆ existDemandFilename()

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

Here is the caller graph for this function:

◆ existMeanDataFilename()

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

Here is the caller graph for this function:

◆ getAdditionalFilenames()

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

Here is the caller graph for this function:

◆ getAdditionalsByFilename()

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

Here is the caller graph for this function:

◆ getDataFilenames()

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

Here is the caller graph for this function:

◆ getDatasByFilename()

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

Here is the caller graph for this function:

◆ getDemandFilenames()

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

Here is the caller graph for this function:

◆ getDemandsByFilename()

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

Here is the caller graph for this function:

◆ getMeanDataFilenames()

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

Here is the caller graph for this function:

◆ getMeanDatasByFilename()

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

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ parsingSavingFiles()

std::string GNENetHelper::SavingFilesHandler::parsingSavingFiles ( const std::vector< std::string > &  savingFiles) const
private

parsing saving files

Definition at line 3400 of file GNENetHelper.cpp.

◆ updateAdditionalEmptyFilenames()

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

Here is the caller graph for this function:

◆ updateDataEmptyFilenames()

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

Here is the caller graph for this function:

◆ updateDemandEmptyFilenames()

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

Here is the caller graph for this function:

◆ updateMeanDataEmptyFilenames()

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

Here is the caller graph for this function:

◆ updateNeteditConfig()

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

Here is the caller graph for this function:

Field Documentation

◆ myAdditionalElementsSavingFiles

std::vector<std::string> GNENetHelper::SavingFilesHandler::myAdditionalElementsSavingFiles
private

vector with additional elements saving files

Definition at line 1020 of file GNENetHelper.h.

◆ myDataElementsSavingFiles

std::vector<std::string> GNENetHelper::SavingFilesHandler::myDataElementsSavingFiles
private

vector with data elements saving files

Definition at line 1026 of file GNENetHelper.h.

◆ myDemandElementsSavingFiles

std::vector<std::string> GNENetHelper::SavingFilesHandler::myDemandElementsSavingFiles
private

vector with demand elements saving files

Definition at line 1023 of file GNENetHelper.h.

◆ myMeanDataElementsSavingFiles

std::vector<std::string> GNENetHelper::SavingFilesHandler::myMeanDataElementsSavingFiles
private

vector with mean data elements saving files

Definition at line 1029 of file GNENetHelper.h.

◆ myNet

GNENet* GNENetHelper::SavingFilesHandler::myNet
private

pointer to net

Definition at line 1017 of file GNENetHelper.h.


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