![]() |
HAL
|
#include <project_json.h>
Public Types | |
enum | Status { Ok = 0 , NotExisting = -1 , CannotOpen = -2 , ParseError = -3 , NetlistError = -4 , GatelibError = -5 } |
Public Member Functions | |
ProjectJson (const QString &filename) | |
Status | status () const |
QString | netlistFilename () const |
QString | gateLibraryFilename () const |
void | setGateLibraryFilename (const QString &gl) |
Definition at line 33 of file project_json.h.
Enumerator | |
---|---|
Ok | |
NotExisting | |
CannotOpen | |
ParseError | |
NetlistError | |
GatelibError |
Definition at line 35 of file project_json.h.
hal::ProjectJson::ProjectJson | ( | const QString & | filename | ) |
Definition at line 7 of file project_json.cpp.
References CannotOpen, QJsonObject::contains(), hal::ff, QJsonDocument::fromJson(), GatelibError, QString::isEmpty(), QJsonDocument::isObject(), NetlistError, QJsonParseError::NoError, QJsonDocument::object(), Ok, ParseError, QFileInfo::path(), and QIODevice::ReadOnly.
|
inline |
Definition at line 48 of file project_json.h.
Referenced by hal::ExportProjectDialog::exportProject(), and hal::FileManager::openProject().
|
inline |
Definition at line 47 of file project_json.h.
void hal::ProjectJson::setGateLibraryFilename | ( | const QString & | gl | ) |
Definition at line 52 of file project_json.cpp.
References QDir::absoluteFilePath(), QJsonDocument::Compact, QJsonObject::insert(), QJsonDocument::object(), of, QFile::remove(), QJsonObject::remove(), QJsonDocument::toJson(), and QIODevice::WriteOnly.
Referenced by hal::ExportProjectDialog::exportProject().
|
inline |
Definition at line 46 of file project_json.h.
Referenced by hal::ExportProjectDialog::exportProject().