LibrePCB Developers Documentation
Loading...
Searching...
No Matches
ProjectJsonExport Class Referencefinal

Project data export to JSON. More...

#include <projectjsonexport.h>

+ Collaboration diagram for ProjectJsonExport:

Classes

struct  BoundingBox
 
struct  ToolList
 

Public Member Functions

 ProjectJsonExport () noexcept
 
 ProjectJsonExport (const ProjectJsonExport &other)=delete
 
 ~ProjectJsonExport () noexcept
 
QJsonArray toJson (const QStringList &obj) const
 
QJsonValue toJson (const Length &obj) const
 
QJsonValue toJson (const std::optional< Length > &obj) const
 
QJsonArray toJson (const QSet< Length > &obj) const
 
QJsonValue toJson (const PcbColor *obj) const
 
QJsonObject toJson (const AssemblyVariant &obj) const
 
QJsonValue toJson (const BoundingBox &obj) const
 
QJsonObject toJson (const ToolList &obj) const
 
QJsonObject toJson (const Board &obj) const
 
QJsonObject toJson (const Project &obj) const
 
QByteArray toUtf8 (const Project &obj) const
 
ProjectJsonExportoperator= (const ProjectJsonExport &rhs)=delete
 

Detailed Description

Project data export to JSON.

Note
To be extended with new JSON nodes as needed, but increment the version number on each change and keep it backwards compatible within each major release of LibrePCB!

Constructor & Destructor Documentation

◆ ProjectJsonExport() [1/2]

ProjectJsonExport ( )
noexcept

◆ ProjectJsonExport() [2/2]

ProjectJsonExport ( const ProjectJsonExport other)
delete

◆ ~ProjectJsonExport()

~ProjectJsonExport ( )
noexcept

Member Function Documentation

◆ toJson() [1/10]

QJsonArray toJson ( const QStringList &  obj) const
+ Here is the caller graph for this function:

◆ toJson() [2/10]

QJsonValue toJson ( const Length obj) const
+ Here is the call graph for this function:

◆ toJson() [3/10]

QJsonValue toJson ( const std::optional< Length > &  obj) const

◆ toJson() [4/10]

QJsonArray toJson ( const QSet< Length > &  obj) const
+ Here is the call graph for this function:

◆ toJson() [5/10]

QJsonValue toJson ( const PcbColor obj) const
+ Here is the call graph for this function:

◆ toJson() [6/10]

QJsonObject toJson ( const AssemblyVariant obj) const
+ Here is the call graph for this function:

◆ toJson() [7/10]

QJsonValue toJson ( const BoundingBox obj) const
+ Here is the call graph for this function:

◆ toJson() [8/10]

QJsonObject toJson ( const ToolList obj) const
+ Here is the call graph for this function:

◆ toJson() [9/10]

QJsonObject toJson ( const Board obj) const
+ Here is the call graph for this function:

◆ toJson() [10/10]

QJsonObject toJson ( const Project obj) const
+ Here is the call graph for this function:

◆ toUtf8()

QByteArray toUtf8 ( const Project obj) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

ProjectJsonExport & operator= ( const ProjectJsonExport rhs)
delete

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