KiCad PCB EDA Suite
Loading...
Searching...
No Matches
easyeda_parser_structs.cpp File Reference

Go to the source code of this file.

Macros

#define PARSE_VALUE(name)
 
#define PARSE_TO_DOUBLE(name, def)
 

Macro Definition Documentation

◆ PARSE_TO_DOUBLE

#define PARSE_TO_DOUBLE (   name,
  def 
)
Value:
if( j.find( #name ) == j.end() ) \
{ \
d.name = def; \
} \
else if( j.at( #name ).is_string() ) \
{ \
wxString str = j.at( #name ).get<wxString>(); \
\
double out = 0; \
str.ToCDouble( &out ); \
d.name = out; \
} \
else if( j.at( #name ).is_number() ) \
{ \
d.name = j.at( #name ).get<double>(); \
}
const char * name
Definition: DXF_plotter.cpp:57

Definition at line 35 of file easyeda_parser_structs.cpp.

◆ PARSE_VALUE

#define PARSE_VALUE (   name)
Value:
if( j.find( #name ) != j.end() ) \
j.at( #name ).get_to( d.name )

Definition at line 31 of file easyeda_parser_structs.cpp.