![]() |
QElectroTech 0.200.1-dev
|
Extracts an EPLAN Data Portal package (.edz) to a temporary folder. More...
#include <edzarchive.h>

Public Member Functions | |
| EdzArchive () | |
| ~EdzArchive () | |
| bool | extract (const QString &edz_path) |
| QString | extractedDir () const |
| QString | partXmlPath () const |
| QString | errorString () const |
Private Attributes | |
| QScopedPointer< QTemporaryDir > | m_dir |
| QString | m_error |
Extracts an EPLAN Data Portal package (.edz) to a temporary folder.
A .edz is a 7-Zip archive holding a part definition (part.xml), an EPLAN macro, a product image and metadata. EdzArchive unpacks it so the rest of the import pipeline can read the (portable) part.xml.
Extraction uses the bundled (public-domain) LZMA SDK 7-Zip reader, so no external 7-Zip is required at runtime (see edzsevenzip).
The extracted tree lives in a QTemporaryDir owned by this object and is removed when the EdzArchive is destroyed.
|
default |
|
default |
| QString EdzArchive::errorString | ( | ) | const |

| bool EdzArchive::extract | ( | const QString & | edz_path | ) |
Extract the .edz at edz_path into a fresh temporary directory.


| QString EdzArchive::extractedDir | ( | ) | const |

| QString EdzArchive::partXmlPath | ( | ) | const |


|
private |
|
private |