KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EASYEDAPRO Namespace Reference

Classes

struct  BLOB
 
struct  PCB_ATTR
 
struct  PIN_INFO
 
struct  POURED
 
struct  PRJ_BOARD
 
struct  PRJ_DEVICE
 
struct  PRJ_FOOTPRINT
 
struct  PRJ_SCHEMATIC
 
struct  PRJ_SHEET
 
struct  PRJ_SYMBOL
 
struct  SCH_ATTR
 
struct  SCH_COMPONENT
 
struct  SCH_WIRE
 
struct  SYM_HEAD
 
struct  SYM_INFO
 
struct  SYM_PIN
 

Enumerations

enum class  SYMBOL_TYPE {
  NORMAL = 2 , POWER_PORT = 18 , NETPORT = 19 , SHEET_SYMBOL = 20 ,
  SHORT = 22
}
 
enum class  FOOTPRINT_TYPE { NORMAL = 4 }
 

Functions

wxString ShortenLibName (wxString aProjectName)
 
LIB_ID ToKiCadLibID (const wxString &aLibName, const wxString &aLibReference)
 
std::vector< IMPORT_PROJECT_DESCProjectToSelectorDialog (const nlohmann::json &aProject, bool aPcbOnly=false, bool aSchOnly=false)
 
nlohmann::json FindJsonFile (const wxString &aZipFileName, const std::set< wxString > &aFileNames)
 
nlohmann::json ReadProjectOrDeviceFile (const wxString &aZipFileName)
 
void IterateZipFiles (const wxString &aFileName, std::function< bool(const wxString &, const wxString &, wxInputStream &)> aCallback)
 
std::vector< nlohmann::json > ParseJsonLines (wxInputStream &aInput, const wxString &aSource)
 
std::vector< std::vector< nlohmann::json > > ParseJsonLinesWithSeparation (wxInputStream &aInput, const wxString &aSource)
 Multiple document types (e.g.
 
void from_json (const nlohmann::json &j, EASYEDAPRO::SCH_ATTR &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::PCB_ATTR &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::SCH_COMPONENT &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::SCH_WIRE &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::SYM_PIN &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::SYM_HEAD &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_SHEET &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_SCHEMATIC &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_BOARD &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_SYMBOL &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_FOOTPRINT &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_DEVICE &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::BLOB &d)
 
void from_json (const nlohmann::json &j, EASYEDAPRO::POURED &d)
 

Variables

static const bool IMPORT_POURED = true
 
static const bool IMPORT_POURED_ECOP = false
 

Enumeration Type Documentation

◆ FOOTPRINT_TYPE

enum class EASYEDAPRO::FOOTPRINT_TYPE
strong
Enumerator
NORMAL 

Definition at line 56 of file easyedapro_parser.h.

◆ SYMBOL_TYPE

enum class EASYEDAPRO::SYMBOL_TYPE
strong
Enumerator
NORMAL 
POWER_PORT 
NETPORT 
SHEET_SYMBOL 
SHORT 

Definition at line 47 of file easyedapro_parser.h.

Function Documentation

◆ FindJsonFile()

nlohmann::json EASYEDAPRO::FindJsonFile ( const wxString &  aZipFileName,
const std::set< wxString > &  aFileNames 
)

Definition at line 143 of file easyedapro_import_utils.cpp.

References _, name, THROW_IO_ERROR, and zip.

Referenced by ReadProjectOrDeviceFile().

◆ from_json() [1/14]

void EASYEDAPRO::from_json ( const nlohmann::json &  j,
EASYEDAPRO::BLOB d 
)

Definition at line 279 of file easyedapro_parser.cpp.

References EASYEDAPRO::BLOB::objectId, and EASYEDAPRO::BLOB::url.

◆ from_json() [2/14]

◆ from_json() [3/14]

void EASYEDAPRO::from_json ( const nlohmann::json &  j,
EASYEDAPRO::POURED d 
)

◆ from_json() [4/14]

void EASYEDAPRO::from_json ( const nlohmann::json &  j,
EASYEDAPRO::PRJ_BOARD d 
)

◆ from_json() [5/14]

◆ from_json() [6/14]

◆ from_json() [7/14]

void EASYEDAPRO::from_json ( const nlohmann::json &  j,
EASYEDAPRO::PRJ_SCHEMATIC d 
)

◆ from_json() [8/14]

void EASYEDAPRO::from_json ( const nlohmann::json &  j,
EASYEDAPRO::PRJ_SHEET d 
)

◆ from_json() [9/14]

◆ from_json() [10/14]

◆ from_json() [11/14]

◆ from_json() [12/14]

void EASYEDAPRO::from_json ( const nlohmann::json &  j,
EASYEDAPRO::SCH_WIRE d 
)

◆ from_json() [13/14]

◆ from_json() [14/14]

void EASYEDAPRO::from_json ( const nlohmann::json &  j,
EASYEDAPRO::SYM_PIN d 
)

◆ IterateZipFiles()

void EASYEDAPRO::IterateZipFiles ( const wxString &  aFileName,
std::function< bool(const wxString &, const wxString &, wxInputStream &)>  aCallback 
)

◆ ParseJsonLines()

std::vector< nlohmann::json > EASYEDAPRO::ParseJsonLines ( wxInputStream &  aInput,
const wxString &  aSource 
)

◆ ParseJsonLinesWithSeparation()

std::vector< std::vector< nlohmann::json > > EASYEDAPRO::ParseJsonLinesWithSeparation ( wxInputStream &  aInput,
const wxString &  aSource 
)

Multiple document types (e.g.

footprint and PCB) can be put into a single file, separated by empty line.

Definition at line 274 of file easyedapro_import_utils.cpp.

References _.

Referenced by PCB_IO_EASYEDAPRO::LoadBoard().

◆ ProjectToSelectorDialog()

◆ ReadProjectOrDeviceFile()

◆ ShortenLibName()

◆ ToKiCadLibID()

Variable Documentation

◆ IMPORT_POURED

const bool EASYEDAPRO::IMPORT_POURED = true
static

Definition at line 44 of file easyedapro_parser.h.

Referenced by PCB_IO_EASYEDAPRO_PARSER::ParseBoard().

◆ IMPORT_POURED_ECOP

const bool EASYEDAPRO::IMPORT_POURED_ECOP = false
static

Definition at line 45 of file easyedapro_parser.h.

Referenced by PCB_IO_EASYEDAPRO::LoadAllDataFromProject().