22#include <nlohmann/json_fwd.hpp>
27 aJson = nlohmann::json( aLset.
FmtHex() );
33 aLset.
ParseHex( aJson.get<std::string>() );
LSET is a set of PCB_LAYER_IDs.
int ParseHex(const char *aStart, int aCount)
Convert the output of FmtHex() and replaces this set's values with those given in the input string.
std::string FmtHex() const
Return a hex string showing contents of this LSEQ.
void from_json(const nlohmann::json &aJson, LSET &aLset)
void to_json(nlohmann::json &aJson, const LSET &aLset)