Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEEvent_FileLoaded Class Reference

#include <GNEEvent_FileLoaded.h>

Inheritance diagram for GNEEvent_FileLoaded:
[legend]
Collaboration diagram for GNEEvent_FileLoaded:
[legend]

Public Types

enum class  Type {
  NETECFG , SUMOCFG , NETCCFG , NETWORK ,
  OSM , CONSOLE , NEW , INVALID_TYPE ,
  INVALID_OPTIONS , INVALID_PROJECTION , INVALID_CONFIG
}
 type of loaded element More...
 

Public Member Functions

const std::string & getFile () const
 get the name of the loaded file
 
GNENetgetNet () const
 get the loaded net
 
GUIEventType getOwnType () const
 returns the event type
 
const std::string & getSettingsFile () const
 get the name of the settings file to load
 
GNEEvent_FileLoaded::Type getType () const
 get event type
 
bool getViewportFromRegistry () const
 get whether loading viewport from registry
 
 GNEEvent_FileLoaded (GNEEvent_FileLoaded::Type type, GNENet *net, const std::string &file, const std::string &settingsFile, const bool viewportFromRegistry)
 constructor
 
 ~GNEEvent_FileLoaded ()
 destructor
 

Protected Attributes

std::string myFile
 the name of the loaded file
 
GNENetmyNet
 the loaded net
 
std::string mySettingsFile
 the name of the settings file to load
 
GNEEvent_FileLoaded::Type myType = GNEEvent_FileLoaded::Type::INVALID_TYPE
 event type
 
bool myViewportFromRegistry
 whether loading viewport from registry
 

Private Member Functions

 GNEEvent_FileLoaded (const GNEEvent_FileLoaded &)=delete
 Invalidated copy constructor.
 
GNEEvent_FileLoadedoperator= (const GNEEvent_FileLoaded &src)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 37 of file GNEEvent_FileLoaded.h.

Member Enumeration Documentation

◆ Type

type of loaded element

Enumerator
NETECFG 
SUMOCFG 
NETCCFG 
NETWORK 
OSM 
CONSOLE 
NEW 
INVALID_TYPE 
INVALID_OPTIONS 
INVALID_PROJECTION 
INVALID_CONFIG 

Definition at line 41 of file GNEEvent_FileLoaded.h.

Constructor & Destructor Documentation

◆ GNEEvent_FileLoaded() [1/2]

GNEEvent_FileLoaded::GNEEvent_FileLoaded ( GNEEvent_FileLoaded::Type  type,
GNENet net,
const std::string &  file,
const std::string &  settingsFile,
const bool  viewportFromRegistry 
)

constructor

Definition at line 27 of file GNEEvent_FileLoaded.cpp.

◆ ~GNEEvent_FileLoaded()

GNEEvent_FileLoaded::~GNEEvent_FileLoaded ( )

destructor

Definition at line 38 of file GNEEvent_FileLoaded.cpp.

◆ GNEEvent_FileLoaded() [2/2]

GNEEvent_FileLoaded::GNEEvent_FileLoaded ( const GNEEvent_FileLoaded )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getFile()

const std::string & GNEEvent_FileLoaded::getFile ( ) const

get the name of the loaded file

Definition at line 54 of file GNEEvent_FileLoaded.cpp.

References myFile.

Referenced by GNEApplicationWindow::handleEvent_FileLoaded().

Here is the caller graph for this function:

◆ getNet()

GNENet * GNEEvent_FileLoaded::getNet ( ) const

get the loaded net

Definition at line 48 of file GNEEvent_FileLoaded.cpp.

References myNet.

Referenced by GNEApplicationWindow::handleEvent_FileLoaded().

Here is the caller graph for this function:

◆ getOwnType()

GUIEventType GUIEvent::getOwnType ( ) const
inlineinherited

returns the event type

Definition at line 89 of file GUIEvent.h.

References GUIEvent::myType.

Referenced by GUIApplicationWindow::eventOccurred(), GNEApplicationWindow::eventOccurred(), GUIApplicationWindow::handleEvent_Message(), GNEApplicationWindow::handleEvent_Message(), GNERunDialog::onThreadEvent(), GNERunNetgenerateDialog::onThreadEvent(), and GNERunPythonToolDialog::onThreadEvent().

Here is the caller graph for this function:

◆ getSettingsFile()

const std::string & GNEEvent_FileLoaded::getSettingsFile ( ) const

get the name of the settings file to load

Definition at line 60 of file GNEEvent_FileLoaded.cpp.

References mySettingsFile.

Referenced by GNEApplicationWindow::handleEvent_FileLoaded().

Here is the caller graph for this function:

◆ getType()

GNEEvent_FileLoaded::Type GNEEvent_FileLoaded::getType ( ) const

get event type

Definition at line 42 of file GNEEvent_FileLoaded.cpp.

References myType.

Referenced by GNEApplicationWindow::handleEvent_FileLoaded().

Here is the caller graph for this function:

◆ getViewportFromRegistry()

bool GNEEvent_FileLoaded::getViewportFromRegistry ( ) const

get whether loading viewport from registry

Definition at line 66 of file GNEEvent_FileLoaded.cpp.

References myViewportFromRegistry.

Referenced by GNEApplicationWindow::handleEvent_FileLoaded().

Here is the caller graph for this function:

◆ operator=()

GNEEvent_FileLoaded & GNEEvent_FileLoaded::operator= ( const GNEEvent_FileLoaded src)
privatedelete

Invalidated assignment operator.

Field Documentation

◆ myFile

std::string GNEEvent_FileLoaded::myFile
protected

the name of the loaded file

Definition at line 85 of file GNEEvent_FileLoaded.h.

Referenced by getFile().

◆ myNet

GNENet* GNEEvent_FileLoaded::myNet
protected

the loaded net

Definition at line 82 of file GNEEvent_FileLoaded.h.

Referenced by getNet().

◆ mySettingsFile

std::string GNEEvent_FileLoaded::mySettingsFile
protected

the name of the settings file to load

Definition at line 88 of file GNEEvent_FileLoaded.h.

Referenced by getSettingsFile().

◆ myType

GNEEvent_FileLoaded::Type GNEEvent_FileLoaded::myType = GNEEvent_FileLoaded::Type::INVALID_TYPE
protected

event type

Definition at line 79 of file GNEEvent_FileLoaded.h.

Referenced by getType().

◆ myViewportFromRegistry

bool GNEEvent_FileLoaded::myViewportFromRegistry
protected

whether loading viewport from registry

Definition at line 91 of file GNEEvent_FileLoaded.h.

Referenced by getViewportFromRegistry().


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