KiCad PCB EDA Suite
|
#include "pcm_data.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
void | to_optional (const json &j, const char *key, std::optional< T > &dest) |
void | to_json (json &j, const PACKAGE_VERSION &v) |
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) |
void from_json | ( | const json & | j, |
PACKAGE_VERSION & | v | ||
) |
Definition at line 68 of file pcm_data.cpp.
References PACKAGE_VERSION::download_sha256, PACKAGE_VERSION::download_size, PACKAGE_VERSION::download_url, PACKAGE_VERSION::install_size, PACKAGE_VERSION::keep_on_update, PACKAGE_VERSION::kicad_version, PACKAGE_VERSION::kicad_version_max, PACKAGE_VERSION::platforms, PACKAGE_VERSION::status, to_optional(), PACKAGE_VERSION::version, and PACKAGE_VERSION::version_epoch.
void from_json | ( | const json & | j, |
PCM_INSTALLATION_ENTRY & | e | ||
) |
void from_json | ( | const json & | j, |
PCM_PACKAGE & | p | ||
) |
Definition at line 112 of file pcm_data.cpp.
References PCM_PACKAGE::author, PCM_PACKAGE::description, PCM_PACKAGE::description_full, PCM_PACKAGE::identifier, PCM_PACKAGE::keep_on_update, PCM_PACKAGE::license, PCM_PACKAGE::maintainer, PCM_PACKAGE::name, PCM_PACKAGE::resources, PCM_PACKAGE::tags, to_optional(), PCM_PACKAGE::type, and PCM_PACKAGE::versions.
void from_json | ( | const json & | j, |
PCM_REPOSITORY & | r | ||
) |
Definition at line 167 of file pcm_data.cpp.
References PCM_REPOSITORY::maintainer, PCM_REPOSITORY::manifests, PCM_REPOSITORY::name, PCM_REPOSITORY::packages, PCM_REPOSITORY::resources, and to_optional().
void from_json | ( | const json & | j, |
PCM_RESOURCE_REFERENCE & | r | ||
) |
Definition at line 143 of file pcm_data.cpp.
References PCM_RESOURCE_REFERENCE::sha256, to_optional(), PCM_RESOURCE_REFERENCE::update_timestamp, and PCM_RESOURCE_REFERENCE::url.
void to_json | ( | json & | j, |
const PACKAGE_VERSION & | v | ||
) |
Definition at line 36 of file pcm_data.cpp.
References PACKAGE_VERSION::download_sha256, PACKAGE_VERSION::download_size, PACKAGE_VERSION::download_url, PACKAGE_VERSION::install_size, PACKAGE_VERSION::keep_on_update, PACKAGE_VERSION::kicad_version, PACKAGE_VERSION::kicad_version_max, PACKAGE_VERSION::platforms, PACKAGE_VERSION::status, PACKAGE_VERSION::version, and PACKAGE_VERSION::version_epoch.
void to_json | ( | json & | j, |
const PCM_INSTALLATION_ENTRY & | e | ||
) |
void to_json | ( | json & | j, |
const PCM_PACKAGE & | p | ||
) |
Definition at line 89 of file pcm_data.cpp.
References PCM_PACKAGE::author, PCM_PACKAGE::description, PCM_PACKAGE::description_full, PCM_PACKAGE::identifier, PCM_PACKAGE::keep_on_update, PCM_PACKAGE::license, PCM_PACKAGE::maintainer, PCM_PACKAGE::name, PCM_PACKAGE::resources, PCM_PACKAGE::tags, PCM_PACKAGE::type, and PCM_PACKAGE::versions.
void to_json | ( | json & | j, |
const PCM_REPOSITORY & | r | ||
) |
Definition at line 152 of file pcm_data.cpp.
References PCM_REPOSITORY::maintainer, PCM_REPOSITORY::manifests, PCM_REPOSITORY::name, PCM_REPOSITORY::packages, and PCM_REPOSITORY::resources.
void to_json | ( | json & | j, |
const PCM_RESOURCE_REFERENCE & | r | ||
) |
Definition at line 134 of file pcm_data.cpp.
References PCM_RESOURCE_REFERENCE::sha256, PCM_RESOURCE_REFERENCE::update_timestamp, and PCM_RESOURCE_REFERENCE::url.
void to_optional | ( | const json & | j, |
const char * | key, | ||
std::optional< T > & | dest | ||
) |
Definition at line 25 of file pcm_data.cpp.
Referenced by from_json().