KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcm_data.h File Reference
#include "core/wx_stl_compat.h"
#include <map>
#include <json_common.h>
#include <core/json_serializers.h>
#include <optional>
#include <string>
#include <tuple>
#include <vector>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  PCM_CONTACT
 
struct  PACKAGE_VERSION
 < Package version metadata Package metadata More...
 
struct  PCM_PACKAGE
 Repository reference to a resource. More...
 
struct  PCM_RESOURCE_REFERENCE
 Repository metadata. More...
 
struct  PCM_REPOSITORY
 Package installation entry. More...
 
struct  PCM_INSTALLATION_ENTRY
 

Typedefs

using STRING_MAP = std::map< std::string, wxString >
 

Enumerations

enum  PCM_PACKAGE_TYPE {
  PT_INVALID , PT_PLUGIN , PT_FAB , PT_LIBRARY ,
  PT_COLORTHEME
}
 < Supported package types More...
 
enum  PCM_PLUGIN_CATEGORY { PC_INVALID , PC_GENERAL , PC_FAB }
 
enum  PCM_PACKAGE_VERSION_STATUS {
  PVS_INVALID , PVS_STABLE , PVS_TESTING , PVS_DEVELOPMENT ,
  PVS_DEPRECATED
}
 

Functions

 NLOHMANN_JSON_SERIALIZE_ENUM (PCM_PACKAGE_TYPE, { { PT_INVALID, "invalid" }, { PT_PLUGIN, "plugin" }, { PT_FAB, "fab" }, { PT_LIBRARY, "library" }, { PT_COLORTHEME, "colortheme" }, }) NLOHMANN_JSON_SERIALIZE_ENUM(PCM_PLUGIN_CATEGORY
 
void from_json (const json &j, PACKAGE_VERSION &v)
 
void to_json (json &j, const PCM_PACKAGE &p)
 
void from_json (const json &j, PCM_PACKAGE &p)
 
void to_json (json &j, const PCM_RESOURCE_REFERENCE &r)
 
void from_json (const json &j, PCM_RESOURCE_REFERENCE &r)
 
void to_json (json &j, const PCM_REPOSITORY &r)
 
void from_json (const json &j, PCM_REPOSITORY &r)
 
void to_json (json &j, const PCM_INSTALLATION_ENTRY &e)
 
void from_json (const json &j, PCM_INSTALLATION_ENTRY &e)
 

Typedef Documentation

◆ STRING_MAP

using STRING_MAP = std::map<std::string, wxString>

Definition at line 36 of file pcm_data.h.

Enumeration Type Documentation

◆ PCM_PACKAGE_TYPE

< Supported package types

Enumerator
PT_INVALID 
PT_PLUGIN 
PT_FAB 
PT_LIBRARY 
PT_COLORTHEME 

Definition at line 41 of file pcm_data.h.

◆ PCM_PACKAGE_VERSION_STATUS

Enumerator
PVS_INVALID 
PVS_STABLE 
PVS_TESTING 
PVS_DEVELOPMENT 
PVS_DEPRECATED 

Definition at line 60 of file pcm_data.h.

◆ PCM_PLUGIN_CATEGORY

Enumerator
PC_INVALID 
PC_GENERAL 
PC_FAB 

Definition at line 51 of file pcm_data.h.

Function Documentation

◆ from_json() [1/5]

◆ from_json() [2/5]

◆ from_json() [3/5]

◆ from_json() [4/5]

◆ from_json() [5/5]

◆ NLOHMANN_JSON_SERIALIZE_ENUM()

NLOHMANN_JSON_SERIALIZE_ENUM ( PCM_PACKAGE_TYPE  ,
{ { PT_INVALID, "invalid" }, { PT_PLUGIN, "plugin" }, { PT_FAB, "fab" }, { PT_LIBRARY, "library" }, { PT_COLORTHEME, "colortheme" }, }   
)

◆ to_json() [1/4]

◆ to_json() [2/4]

◆ to_json() [3/4]

◆ to_json() [4/4]

void to_json ( json j,
const PCM_RESOURCE_REFERENCE r 
)