OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WLoadFinishedEvent Class Reference

Event signalling a finished asynchronous load job. More...

#include <WLoadFinishedEvent.h>

+ Inheritance diagram for WLoadFinishedEvent:
+ Collaboration diagram for WLoadFinishedEvent:

Public Member Functions

 WLoadFinishedEvent (boost::filesystem::path filename, std::vector< std::string > errors, std::vector< std::string > warnings)
 Creates a new event instance denoting that a asynchronous load was finished. More...
 
virtual ~WLoadFinishedEvent ()
 Destructor. More...
 
const std::vector< std::string > & getErrors () const
 Returns the list of errors. More...
 
const std::vector< std::string > & getWarnings () const
 Returns the list of warnings. More...
 
std::string getFilename () const
 The filename of the file loaded. More...
 

Private Attributes

boost::filesystem::path m_filename
 The filename of the file loaded. More...
 
std::vector< std::string > m_errors
 The error list. More...
 
std::vector< std::string > m_warnings
 The warnings list. More...
 

Detailed Description

Event signalling a finished asynchronous load job.

Definition at line 38 of file WLoadFinishedEvent.h.

Constructor & Destructor Documentation

◆ WLoadFinishedEvent()

WLoadFinishedEvent::WLoadFinishedEvent ( boost::filesystem::path  filename,
std::vector< std::string >  errors,
std::vector< std::string >  warnings 
)

Creates a new event instance denoting that a asynchronous load was finished.

Parameters
filenamethe filename of the file that was loaded
errorsthe list of errors. Can be empty.
warningsthe list of warnings. Can be empty.

Definition at line 32 of file WLoadFinishedEvent.cpp.

◆ ~WLoadFinishedEvent()

WLoadFinishedEvent::~WLoadFinishedEvent ( )
virtual

Destructor.

Definition at line 41 of file WLoadFinishedEvent.cpp.

Member Function Documentation

◆ getErrors()

const std::vector< std::string > & WLoadFinishedEvent::getErrors ( ) const

Returns the list of errors.

Returns
the errors.

Definition at line 46 of file WLoadFinishedEvent.cpp.

References m_errors.

Referenced by WMainWindow::event().

+ Here is the caller graph for this function:

◆ getFilename()

std::string WLoadFinishedEvent::getFilename ( ) const

The filename of the file loaded.

Returns
the filename

Definition at line 56 of file WLoadFinishedEvent.cpp.

References m_filename.

Referenced by WMainWindow::event().

+ Here is the caller graph for this function:

◆ getWarnings()

const std::vector< std::string > & WLoadFinishedEvent::getWarnings ( ) const

Returns the list of warnings.

Returns
the warnings.

Definition at line 51 of file WLoadFinishedEvent.cpp.

References m_warnings.

Referenced by WMainWindow::event().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_errors

std::vector< std::string > WLoadFinishedEvent::m_errors
private

The error list.

Definition at line 86 of file WLoadFinishedEvent.h.

Referenced by getErrors().

◆ m_filename

boost::filesystem::path WLoadFinishedEvent::m_filename
private

The filename of the file loaded.

Definition at line 81 of file WLoadFinishedEvent.h.

Referenced by getFilename().

◆ m_warnings

std::vector< std::string > WLoadFinishedEvent::m_warnings
private

The warnings list.

Definition at line 91 of file WLoadFinishedEvent.h.

Referenced by getWarnings().


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