![]() |
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, boost::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 from_json | ( | const json & | j, |
PACKAGE_VERSION & | v | ||
) |
Definition at line 65 of file pcm_data.cpp.
References PACKAGE_VERSION::download_sha256, PACKAGE_VERSION::download_size, PACKAGE_VERSION::download_url, PACKAGE_VERSION::install_size, 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_PACKAGE & | p | ||
) |
Definition at line 103 of file pcm_data.cpp.
References PCM_PACKAGE::author, PCM_PACKAGE::description, PCM_PACKAGE::description_full, PCM_PACKAGE::identifier, 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_RESOURCE_REFERENCE & | r | ||
) |
Definition at line 131 of file pcm_data.cpp.
References r, and to_optional().
void from_json | ( | const json & | j, |
PCM_REPOSITORY & | r | ||
) |
Definition at line 155 of file pcm_data.cpp.
References r, and to_optional().
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::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_PACKAGE & | p | ||
) |
Definition at line 83 of file pcm_data.cpp.
References PCM_PACKAGE::author, PCM_PACKAGE::description, PCM_PACKAGE::description_full, PCM_PACKAGE::identifier, 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_RESOURCE_REFERENCE & | r | ||
) |
void to_json | ( | json & | j, |
const PCM_REPOSITORY & | r | ||
) |
void to_optional | ( | const json & | j, |
const char * | key, | ||
boost::optional< T > & | dest | ||
) |