LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ErcMsg Class Reference

The ErcMsg class represents a message in the ERC (Electrical Rule Check) list. More...

#include <ercmsg.h>

+ Collaboration diagram for ErcMsg:

Public Types

enum  ErcMsgType_t
 ERC message types. More...
 

Public Member Functions

 ErcMsg (Project &project, const IF_ErcMsgProvider &owner, const QString &ownerKey, const QString &msgKey, ErcMsg::ErcMsgType_t msgType, const QString &msg=QString())
 
virtual ~ErcMsg () noexcept
 
const IF_ErcMsgProvidergetOwner () const noexcept
 
const QString & getOwnerKey () const noexcept
 
const QString & getMsgKey () const noexcept
 
ErcMsgType_t getMsgType () const noexcept
 
const QString & getMsg () const noexcept
 
bool isVisible () const noexcept
 
bool isIgnored () const noexcept
 
void setMsg (const QString &msg) noexcept
 
void setVisible (bool visible) noexcept
 
void setIgnored (bool ignored) noexcept
 

Private Member Functions

 ErcMsg ()
 
 ErcMsg (const ErcMsg &other)
 
ErcMsgoperator= (const ErcMsg &rhs)
 

Private Attributes

ProjectmProject
 
ErcMsgListmErcMsgList
 
const IF_ErcMsgProvidermOwner
 
QString mOwnerKey
 
QString mMsgKey
 
ErcMsgType_t mMsgType
 
QString mMsg
 
bool mIsVisible
 
bool mIsIgnored
 

Detailed Description

The ErcMsg class represents a message in the ERC (Electrical Rule Check) list.

Member Enumeration Documentation

enum ErcMsgType_t
strong

ERC message types.

Enumerator
CircuitError 

example: two output pins in the same net

CircuitWarning 

example: nets with only one pin

SchematicError 

example: unplaced required symbols

SchematicWarning 

example: unplaced optional symbols

BoardError 

example: unplaced footprints

BoardWarning 

example: ???

_Count 

count of message types

Constructor & Destructor Documentation

ErcMsg ( Project project,
const IF_ErcMsgProvider owner,
const QString &  ownerKey,
const QString &  msgKey,
ErcMsg::ErcMsgType_t  msgType,
const QString &  msg = QString() 
)
explicit
~ErcMsg ( )
virtualnoexcept

+ Here is the call graph for this function:

ErcMsg ( )
private
ErcMsg ( const ErcMsg other)
private

Member Function Documentation

const IF_ErcMsgProvider& getOwner ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const QString& getOwnerKey ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const QString& getMsgKey ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

ErcMsgType_t getMsgType ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const QString& getMsg ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

bool isVisible ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

bool isIgnored ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

void setMsg ( const QString &  msg)
noexcept
void setVisible ( bool  visible)
noexcept

+ Here is the caller graph for this function:

void setIgnored ( bool  ignored)
noexcept

+ Here is the caller graph for this function:

ErcMsg& operator= ( const ErcMsg rhs)
private

Member Data Documentation

Project& mProject
private
ErcMsgList& mErcMsgList
private
const IF_ErcMsgProvider& mOwner
private
QString mOwnerKey
private
QString mMsgKey
private
ErcMsgType_t mMsgType
private
QString mMsg
private
bool mIsVisible
private
bool mIsIgnored
private

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