KiCad PCB EDA Suite
Loading...
Searching...
No Matches
easyedapro_v3_parser.cpp File Reference
#include "easyedapro_v3_parser.h"
#include <algorithm>
#include <cmath>
#include <optional>
#include <set>
#include <io/easyedapro/easyedapro_parser.h>
#include <core/json_serializers.h>
#include <json_common.h>
#include <ki_exception.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/mstream.h>
#include <wx/txtstrm.h>
#include <wx/wfstream.h>
#include <wx/zipstrm.h>

Go to the source code of this file.

Classes

struct  V3_DOC_RAW
 Raw parsed document from an EasyEDA Pro v3 .epru stream. More...
 
struct  V3_ROW
 One parsed row from an EasyEDA Pro v3 .epru document stream. More...
 

Namespaces

namespace  EASYEDAPRO
 

Functions

static std::string ToStdString (const wxString &aStr)
 
wxString EASYEDAPRO::V3JsonToString (const nlohmann::json &aValue, const wxString &aDefault)
 
wxString EASYEDAPRO::V3GetString (const nlohmann::json &aObj, const char *aKey, const wxString &aDefault)
 
wxString EASYEDAPRO::V3GetString (const nlohmann::json &aObj, const wxString &aKey, const wxString &aDefault)
 
double EASYEDAPRO::V3GetDouble (const nlohmann::json &aObj, const char *aKey, double aDefault)
 
int EASYEDAPRO::V3GetInt (const nlohmann::json &aObj, const char *aKey, int aDefault)
 
bool EASYEDAPRO::V3GetBool (const nlohmann::json &aObj, const char *aKey, bool aDefault)
 
bool EASYEDAPRO::V3IsNullOrMissing (const nlohmann::json &aObj, const char *aKey)
 
nlohmann::json EASYEDAPRO::V3ParseIdArray (const wxString &aId)
 

Function Documentation

◆ ToStdString()

static std::string ToStdString ( const wxString & aStr)
static

Definition at line 49 of file easyedapro_v3_parser.cpp.

Referenced by SIMULATOR_FRAME_UI::applyUserDefinedSignals(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), EASYEDAPRO::BuildV3ProjectIndexFromRawDocs(), PATHS::CalculateUserSettingsPath(), IbisModel::Check(), EDIT_TOOL::copyToClipboardAsText(), SIMULATOR_FRAME::destroyTabPlot(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), KICAD_DIFF::PCB_DIFFER::Diff(), DRC_RULES_PARSER::DRC_RULES_PARSER(), GBR_TO_PCB_EXPORTER::export_non_copper_arc(), GBR_TO_PCB_EXPORTER::export_non_copper_item(), GBR_TO_PCB_EXPORTER::export_segarc_copper_item(), GBR_TO_PCB_EXPORTER::export_via(), PATHS::GetUserCachePath(), PATHS::getUserDocumentPath(), API_HANDLER_FOOTPRINT::handleGetOpenDocuments(), API_HANDLER_PCB::handleGetOpenDocuments(), API_HANDLER_COMMON::handleGetVersion(), NGSPICE::init_dll(), PROJECT_FILE::MigrateFromLegacy(), BITMAPCONV_INFO::outputDataHeader(), BITMAPCONV_INFO::outputOnePolygon(), CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND(), APP_MONITOR::SENTRY::sentryInit(), PCB_FIELD::Serialize(), PCB_TEXTBOX::Serialize(), TEXT_BUTTON_FP_CHOOSER::TEXT_BUTTON_FP_CHOOSER(), ODB_ATTR::TextAttribute< T >::TextAttribute(), DIALOG_RENDER_JOB::TransferDataToWindow(), SIMULATOR_FRAME_UI::updateTrace(), EASYEDAPRO::V3GetString(), EASYEDAPRO::V3ParseIdArray(), GBR_TO_PCB_EXPORTER::writeCopperLineItem(), GBR_TO_PCB_EXPORTER::writePcbFilledCircle(), GBR_TO_PCB_EXPORTER::writePcbPolygon(), and GBR_TO_PCB_EXPORTER::writePcbZoneItem().