Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Private Attributes
OODebug::CompilerMessage Class Reference

Represents a single message from the compiler. More...

Public Types

enum  MessageType { Error , Warning , Note , Other }
 

Public Member Functions

 CompilerMessage (MessageType type, const QString &fileName, const QString &message, int lineNumber, int columnNumber, std::shared_ptr< CompilerMessage > rootMessage=nullptr)
 
int columnNumber () const
 
QString fileName () const
 
int lineNumber () const
 
QString message () const
 
std::shared_ptr< CompilerMessagerootMessage () const
 
MessageType type () const
 

Private Attributes

int columnNumber_ {}
 
QString fileName_
 
int lineNumber_ {}
 
QString message_
 
std::shared_ptr< CompilerMessagerootMessage_
 
MessageType type_ {}
 

Detailed Description

Represents a single message from the compiler.

This may be an Error, a Warning, a Note, or something Other.

A note might have a rootMessage, which represents the error or warning this note is connected to.

Member Enumeration Documentation

◆ MessageType

Enumerator
Error 
Warning 
Note 
Other 

Constructor & Destructor Documentation

◆ CompilerMessage()

OODebug::CompilerMessage::CompilerMessage ( MessageType  type,
const QString &  fileName,
const QString &  message,
int  lineNumber,
int  columnNumber,
std::shared_ptr< CompilerMessage rootMessage = nullptr 
)
inline

Member Function Documentation

◆ columnNumber()

int OODebug::CompilerMessage::columnNumber ( ) const
inline

◆ fileName()

QString OODebug::CompilerMessage::fileName ( ) const
inline

◆ lineNumber()

int OODebug::CompilerMessage::lineNumber ( ) const
inline

◆ message()

QString OODebug::CompilerMessage::message ( ) const
inline

◆ rootMessage()

std::shared_ptr< CompilerMessage > OODebug::CompilerMessage::rootMessage ( ) const
inline

◆ type()

CompilerMessage::MessageType OODebug::CompilerMessage::type ( ) const
inline

Member Data Documentation

◆ columnNumber_

int OODebug::CompilerMessage::columnNumber_ {}
private

◆ fileName_

QString OODebug::CompilerMessage::fileName_
private

◆ lineNumber_

int OODebug::CompilerMessage::lineNumber_ {}
private

◆ message_

QString OODebug::CompilerMessage::message_
private

◆ rootMessage_

std::shared_ptr<CompilerMessage> OODebug::CompilerMessage::rootMessage_
private

◆ type_

MessageType OODebug::CompilerMessage::type_ {}
private