Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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 925 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 929 of file GNENetHelper.h.

Constructor & Destructor Documentation

◆ SavingFilesHandler() [1/3]

GNENetHelper::SavingFilesHandler::SavingFilesHandler ( GNENet net)

constructor

Definition at line 3113 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 3158 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 3298 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 3230 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 3356 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 3223 of file GNENetHelper.cpp.

◆ existDataFilename()

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.

◆ existDemandFilename()

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.

◆ existMeanDataFilename()

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.

◆ getAdditionalFilenames()

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

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 3196 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 3324 of file GNENetHelper.cpp.

Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onCmdReloadDataElements(), 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 3330 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 3262 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 3268 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 3388 of file GNENetHelper.cpp.

Referenced by GNEAttributeCarrier::GNEAttributeCarrier(), GNEApplicationWindow::onCmdReloadMeanDataElements(), 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 3394 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 3422 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 3170 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadAdditionalElements().

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 3310 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadDataElements().

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 3242 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadDemandElements().

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 3368 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::loadMeanDataElements().

Here is the caller graph for this function:

◆ updateNeteditConfig()

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

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

◆ myDataElementsSavingFiles

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

vector with data elements saving files

Definition at line 1028 of file GNENetHelper.h.

◆ myDemandElementsSavingFiles

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

vector with demand elements saving files

Definition at line 1025 of file GNENetHelper.h.

◆ myMeanDataElementsSavingFiles

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

vector with mean data elements saving files

Definition at line 1031 of file GNENetHelper.h.

◆ myNet

GNENet* GNENetHelper::SavingFilesHandler::myNet
private

pointer to net

Definition at line 1019 of file GNENetHelper.h.


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