Hopsan
ComponentMessageFunctions

Functions

void addDebugMessage (const HString &rMessage, const HString &rTag="") const
 Write an Debug message, i.e. for debugging purposes.
 
void addWarningMessage (const HString &rMessage, const HString &rTag="") const
 Write an Warning message.
 
void addErrorMessage (const HString &rMessage, const HString &rTag="") const
 Write an Error message.
 
void addInfoMessage (const HString &rMessage, const HString &rTag="") const
 Write an Info message.
 
void addFatalMessage (const HString &rMessage, const HString &rTag="") const
 Writes a Fatal message and tells the receiver of the message to close program in a controlled way. Also prints message to log file.
 

Detailed Description

Function Documentation

◆ addDebugMessage()

void addDebugMessage ( const HString & rMessage,
const HString & rTag = "" ) const

Write an Debug message, i.e. for debugging purposes.

Parameters
[in]rMessageThe message string
[in]rTagThe message tag, used to group similar messages

◆ addErrorMessage()

void addErrorMessage ( const HString & rMessage,
const HString & rTag = "" ) const

Write an Error message.

Parameters
[in]rMessageThe message string
[in]rTagThe message tag, used to group similar messages

◆ addFatalMessage()

void addFatalMessage ( const HString & rMessage,
const HString & rTag = "" ) const

Writes a Fatal message and tells the receiver of the message to close program in a controlled way. Also prints message to log file.

Parameters
[in]rMessageThe message string
[in]rTagThe message tag, used to group similar messages

◆ addInfoMessage()

void addInfoMessage ( const HString & rMessage,
const HString & rTag = "" ) const

Write an Info message.

Parameters
[in]rMessageThe message string
[in]rTagThe message tag, used to group similar messages

◆ addWarningMessage()

void addWarningMessage ( const HString & rMessage,
const HString & rTag = "" ) const

Write an Warning message.

Parameters
[in]rMessageThe message string
[in]rTagThe message tag, used to group similar messages