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

Orchestrates importing an EPLAN .edz package as a QET element. More...

#include <edzimporter.h>

Collaboration diagram for EdzImporter:
Collaboration graph

Public Member Functions

bool importToDirectory (const QString &edz_path, const QString &dest_dir)
QString writtenPath () const
QString errorString () const

Private Attributes

QString m_written
QString m_error

Detailed Description

Orchestrates importing an EPLAN .edz package as a QET element.

Ties together EdzArchive (extract) -> EdzPart (parse) -> EdzElementBuilder (build) and writes the resulting .elmt into a destination collection folder. UI-decoupled so it stays unit-testable headless; the collection widget calls importToDirectory() and then refreshes the panel.

Member Function Documentation

◆ errorString()

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

◆ importToDirectory()

bool EdzImporter::importToDirectory ( const QString & edz_path,
const QString & dest_dir )

Import the .edz at edz_path, writing the generated .elmt into the filesystem folder dest_dir.

Returns
true on success; writtenPath() then holds the created file. On failure errorString() explains why.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writtenPath()

QString EdzImporter::writtenPath ( ) const
inline

Member Data Documentation

◆ m_error

QString EdzImporter::m_error
private

◆ m_written

QString EdzImporter::m_written
private

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