21#ifndef _ALTIUM_PROPS_UTILS_H
22#define _ALTIUM_PROPS_UTILS_H
44 static int ReadInt(
const std::map<wxString, wxString>& aProps,
const wxString& aKey,
47 static double ReadDouble(
const std::map<wxString, wxString>& aProps,
const wxString& aKey,
50 static bool ReadBool(
const std::map<wxString, wxString>& aProps,
const wxString& aKey,
57 static int32_t
ReadKicadUnit(
const std::map<wxString, wxString>& aProps,
const wxString& aKey,
58 const wxString& aDefault,
bool* aOutOfRange =
nullptr );
60 static wxString
ReadString(
const std::map<wxString, wxString>& aProps,
const wxString& aKey,
61 const wxString& aDefault );
64 const wxString& aKey,
const wxString& aDefault );
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
static int32_t ConvertToKicadUnit(const double aValue, bool *aOutOfRange=nullptr)
Convert a value in Altium's internal unit (0.1 uinch) to KiCad IU, clamped to the representable range...
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
static wxString ReadUnicodeString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
static int32_t ReadKicadUnit(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault, bool *aOutOfRange=nullptr)
static double ReadDouble(const std::map< wxString, wxString > &aProps, const wxString &aKey, double aDefault)