KiCad PCB EDA Suite
Loading...
Searching...
No Matches
project_file.h File Reference

Go to the source code of this file.

Classes

class  PROJECT_FILE
 The backing store for a PROJECT, in JSON format. More...
 

Typedefs

typedef std::pair< KIID, wxString > FILE_INFO_PAIR
 For files like sheets and boards, a pair of that object KIID and display name Display name is typically blank for the project root sheet.
 

Enumerations

enum  LAST_PATH_TYPE : unsigned int {
  LAST_PATH_FIRST = 0 , LAST_PATH_NETLIST = LAST_PATH_FIRST , LAST_PATH_STEP , LAST_PATH_IDF ,
  LAST_PATH_VRML , LAST_PATH_SPECCTRADSN , LAST_PATH_GENCAD , LAST_PATH_POS_FILES ,
  LAST_PATH_SVG , LAST_PATH_PLOT , LAST_PATH_2581 , LAST_PATH_ODBPP ,
  LAST_PATH_SIZE
}
 For storing PcbNew MRU paths of various types. More...
 

Functions

void to_json (nlohmann::json &aJson, const FILE_INFO_PAIR &aPair)
 
void from_json (const nlohmann::json &aJson, FILE_INFO_PAIR &aPair)
 

Typedef Documentation

◆ FILE_INFO_PAIR

typedef std::pair<KIID, wxString> FILE_INFO_PAIR

For files like sheets and boards, a pair of that object KIID and display name Display name is typically blank for the project root sheet.

Definition at line 42 of file project_file.h.

Enumeration Type Documentation

◆ LAST_PATH_TYPE

enum LAST_PATH_TYPE : unsigned int

For storing PcbNew MRU paths of various types.

Enumerator
LAST_PATH_FIRST 
LAST_PATH_NETLIST 
LAST_PATH_STEP 
LAST_PATH_IDF 
LAST_PATH_VRML 
LAST_PATH_SPECCTRADSN 
LAST_PATH_GENCAD 
LAST_PATH_POS_FILES 
LAST_PATH_SVG 
LAST_PATH_PLOT 
LAST_PATH_2581 
LAST_PATH_ODBPP 
LAST_PATH_SIZE 

Definition at line 47 of file project_file.h.

Function Documentation

◆ from_json()

void from_json ( const nlohmann::json &  aJson,
FILE_INFO_PAIR aPair 
)

Definition at line 660 of file project_file.cpp.

◆ to_json()

void to_json ( nlohmann::json &  aJson,
const FILE_INFO_PAIR aPair 
)

Definition at line 654 of file project_file.cpp.