30#define ARG_COMPRESS "--compression"
31#define ARG_UNITS "--units"
39 m_argParser.add_description( std::string(
"Export the PCB in ODB++ format" ) );
42 .help( std::string(
"Precision" ) )
45 .metavar(
"PRECISION" );
48 .default_value( std::string(
"zip" ) )
49 .help( std::string(
"Compression mode" ) )
50 .choices(
"none",
"zip",
"tgz" );
53 .default_value( std::string(
"mm" ) )
54 .help( std::string(
"Units" ) )
55 .choices(
"mm",
"in" );
68 if( !wxFile::Exists( job->m_filename ) )
70 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
80 else if( units ==
"in" )
85 if( compression ==
"zip" )
87 else if( compression ==
"tgz" )
89 else if( compression ==
"none" )
std::map< wxString, wxString > m_argDefineVars
Value of the drawing sheet arg if configured.
argparse::ArgumentParser m_argParser
void addDefineArg()
Set up the drawing sheet arg used by many of the export commands.
wxString m_argDrawingSheet
Value of the drawing sheet arg if configured.
wxString m_argOutput
Value of the output arg if configured.
wxString m_argInput
Value of the common input arg if configured.
void addDrawingSheetArg()
Set up the drawing sheet arg used by many of the export commands.
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *aJob, REPORTER *aReporter=nullptr, PROGRESS_REPORTER *aProgressReporter=nullptr)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
This file contains miscellaneous commonly used macros and functions.
static const int ERR_INVALID_INPUT_FILE
std::vector< FAB_LAYER_COLOR > dummy
wxString From_UTF8(const char *cstring)
PCB_EXPORT_BASE_COMMAND(const std::string &aName, bool aInputCanBeDir=false, bool aOutputIsDir=false)