QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
EdzPart Class Reference

The portable data of an EPLAN part, read from its part.xml. More...

#include <edzpart.h>

Collaboration diagram for EdzPart:
Collaboration graph

Public Member Functions

bool parse (const QString &part_xml_path)
QString errorString () const
QString partNumber () const
QString manufacturer () const
QString orderNumber () const
QString typeNumber () const
QString description () const
QString comment () const
QString picture () const
QMap< QString, QString > names () const
QList< EdzPinpins () const

Private Attributes

QString m_error
QString m_part_number
QString m_manufacturer
QString m_order_number
QString m_type_number
QString m_description
 DESCR1, preferred English (for element-info).
QString m_comment
 DESCR2, preferred English.
QString m_picture
 picture file name, if any
QMap< QString, QString > m_names
 2-letter lang -> localized name
QList< EdzPinm_pins

Detailed Description

The portable data of an EPLAN part, read from its part.xml.

Mirrors the fields the standalone edz2qet.py prototype maps: identity and metadata, localized names (2-letter language -> text) and the connection list. Geometry from the EPLAN macro is intentionally ignored — the importer generates a generic symbol from the pin list instead.

Member Function Documentation

◆ comment()

QString EdzPart::comment ( ) const
inline
Here is the caller graph for this function:

◆ description()

QString EdzPart::description ( ) const
inline
Here is the caller graph for this function:

◆ errorString()

QString EdzPart::errorString ( ) const
inline
Here is the caller graph for this function:

◆ manufacturer()

QString EdzPart::manufacturer ( ) const
inline
Here is the caller graph for this function:

◆ names()

QMap< QString, QString > EdzPart::names ( ) const
inline
Here is the caller graph for this function:

◆ orderNumber()

QString EdzPart::orderNumber ( ) const
inline
Here is the caller graph for this function:

◆ parse()

bool EdzPart::parse ( const QString & part_xml_path)

Parse the part.xml at part_xml_path into this object.

Here is the caller graph for this function:

◆ partNumber()

QString EdzPart::partNumber ( ) const
inline
Here is the caller graph for this function:

◆ picture()

QString EdzPart::picture ( ) const
inline

◆ pins()

QList< EdzPin > EdzPart::pins ( ) const
inline
Here is the caller graph for this function:

◆ typeNumber()

QString EdzPart::typeNumber ( ) const
inline

Member Data Documentation

◆ m_comment

QString EdzPart::m_comment
private

DESCR2, preferred English.

◆ m_description

QString EdzPart::m_description
private

DESCR1, preferred English (for element-info).

◆ m_error

QString EdzPart::m_error
private

◆ m_manufacturer

QString EdzPart::m_manufacturer
private

◆ m_names

QMap<QString, QString> EdzPart::m_names
private

2-letter lang -> localized name

◆ m_order_number

QString EdzPart::m_order_number
private

◆ m_part_number

QString EdzPart::m_part_number
private

◆ m_picture

QString EdzPart::m_picture
private

picture file name, if any

◆ m_pins

QList<EdzPin> EdzPart::m_pins
private

◆ m_type_number

QString EdzPart::m_type_number
private

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