knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowCore::Message Class Reference

#include <Message.h>

Classes

struct  Private
 

Public Types

enum  MessageType { ERROR , WARNING }
 

Public Member Functions

 Message (MessageType _type, const QString &errorMessage, int line=-1, const QString &fileName="")
 
 Message (const Message &)
 
Messageoperator= (const Message &rhs)
 
int line () const
 
QString message () const
 
QString fileName () const
 
MessageType type () const
 

Detailed Description

This class contains the information about a compilation message, such as the text of the message, the line of occurance, and the name of the file.

Constructor & Destructor Documentation

◆ Message()

Message::Message ( MessageType _type,
const QString & errorMessage,
int line = -1,
const QString & fileName = "" )

Construct a new CompilationMessage

Member Function Documentation

◆ fileName()

QString Message::fileName ( ) const
Returns
the file name

◆ line()

int Message::line ( ) const
Returns
the line where the message occurs

◆ message()

QString Message::message ( ) const
Returns
the text of the message

◆ type()

Message::MessageType Message::type ( ) const
Returns
the type of message

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