|
AvogadroLibs 1.103.0
|
The BackgroundFileFormat class provides a thin QObject wrapper around an instance of Io::FileFormat.
#include <backgroundfileformat.h>
Public Slots | |
| void | read () |
| void | write () |
Signals | |
| void | finished () |
Public Member Functions | |
| BackgroundFileFormat (Io::FileFormat *format, QObject *parent=nullptr) | |
| Io::FileFormat * | fileFormat () const |
| bool | success () const |
| QString | error () const |
| void | setMolecule (Core::Molecule *mol) |
| Core::Molecule * | molecule () const |
| void | setFileName (const QString &filename) |
| QString | fileName () const |
|
explicit |
This class takes ownership of format and will delete it when destructed.
| void setMolecule | ( | Core::Molecule * | mol | ) |
The molecule instance to read/write.
| Core::Molecule * molecule | ( | ) | const |
The molecule instance to read/write.
| void setFileName | ( | const QString & | filename | ) |
The name of the file to read/write.
| QString fileName | ( | ) | const |
The name of the file to read/write.
| Io::FileFormat * fileFormat | ( | ) | const |
The Io::FileFormat to use.
| bool success | ( | ) | const |
| QString error | ( | ) | const |
|
signal |
Emitted when a call to read or write is called.
|
slot |
Use the fileFormat() to read fileName() into molecule().
|
slot |
Use the fileFormat() to write fileName() from molecule().