KiCad PCB EDA Suite
Loading...
Searching...
No Matches
net_settings.cpp File Reference
#include <algorithm>
#include <limits>
#include <nlohmann/json.hpp>
#include <project/net_settings.h>
#include <settings/parameters.h>
#include <settings/settings_manager.h>
#include <string_utils.h>
#include <base_units.h>

Go to the source code of this file.

Functions

static std::optional< int > getInPcbUnits (const nlohmann::json &aObj, const std::string &aKey, std::optional< int > aDefault=std::optional< int >())
 
static std::optional< int > getInSchUnits (const nlohmann::json &aObj, const std::string &aKey, std::optional< int > aDefault=std::optional< int >())
 
static bool isSuperSubOverbar (wxChar c)
 

Variables

const int netSettingsSchemaVersion = 4
 

Function Documentation

◆ getInPcbUnits()

static std::optional< int > getInPcbUnits ( const nlohmann::json &  aObj,
const std::string &  aKey,
std::optional< int >  aDefault = std::optional<int>() 
)
static

Definition at line 41 of file net_settings.cpp.

References EDA_IU_SCALE::mmToIU(), and pcbIUScale.

◆ getInSchUnits()

static std::optional< int > getInSchUnits ( const nlohmann::json &  aObj,
const std::string &  aKey,
std::optional< int >  aDefault = std::optional<int>() 
)
static

Definition at line 51 of file net_settings.cpp.

References EDA_IU_SCALE::MilsToIU(), and schIUScale.

◆ isSuperSubOverbar()

static bool isSuperSubOverbar ( wxChar  c)
static

Variable Documentation

◆ netSettingsSchemaVersion

const int netSettingsSchemaVersion = 4

Definition at line 38 of file net_settings.cpp.