LibrePCB Developers Documentation
ErcMsgList Class Referencefinal

The ErcMsgList class contains a list of ERC messages which are visible for the user. More...

#include <ercmsglist.h>

+ Inheritance diagram for ErcMsgList:
+ Collaboration diagram for ErcMsgList:

Signals

void ercMsgAdded (ErcMsg *ercMsg)
 
void ercMsgRemoved (ErcMsg *ercMsg)
 
void ercMsgChanged (ErcMsg *ercMsg)
 

Public Member Functions

 ErcMsgList ()=delete
 
 ErcMsgList (const ErcMsgList &other)=delete
 
 ErcMsgList (Project &project)
 
 ~ErcMsgList () noexcept
 
const QList< ErcMsg * > & getItems () const noexcept
 
void add (ErcMsg *ercMsg) noexcept
 
void remove (ErcMsg *ercMsg) noexcept
 
void update (ErcMsg *ercMsg) noexcept
 
void restoreIgnoreState ()
 
void save ()
 
ErcMsgListoperator= (const ErcMsgList &rhs)=delete
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

Private Member Functions

void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 

Private Attributes

ProjectmProject
 
QList< ErcMsg * > mItems
 contains all visible ERC messages More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 

Detailed Description

The ErcMsgList class contains a list of ERC messages which are visible for the user.

Constructor & Destructor Documentation

◆ ErcMsgList() [1/3]

ErcMsgList ( )
delete

◆ ErcMsgList() [2/3]

ErcMsgList ( const ErcMsgList other)
delete

◆ ErcMsgList() [3/3]

ErcMsgList ( Project project)
explicit

◆ ~ErcMsgList()

~ErcMsgList ( )
noexcept

Member Function Documentation

◆ getItems()

const QList<ErcMsg*>& getItems ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add()

void add ( ErcMsg ercMsg)
noexcept
+ Here is the caller graph for this function:

◆ remove()

void remove ( ErcMsg ercMsg)
noexcept
+ Here is the caller graph for this function:

◆ update()

void update ( ErcMsg ercMsg)
noexcept
+ Here is the caller graph for this function:

◆ restoreIgnoreState()

void restoreIgnoreState ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

void save ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

ErcMsgList& operator= ( const ErcMsgList rhs)
delete
+ Here is the caller graph for this function:

◆ ercMsgAdded

void ercMsgAdded ( ErcMsg ercMsg)
signal
+ Here is the caller graph for this function:

◆ ercMsgRemoved

void ercMsgRemoved ( ErcMsg ercMsg)
signal
+ Here is the caller graph for this function:

◆ ercMsgChanged

void ercMsgChanged ( ErcMsg ercMsg)
signal
+ Here is the caller graph for this function:

◆ serialize()

void serialize ( SExpression root) const
overrideprivatevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mProject

Project& mProject
private

◆ mItems

QList<ErcMsg*> mItems
private

contains all visible ERC messages


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