CmdLinePcr.hpp
3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//**************************************************************************************************
// CmdLinePcr.hpp *
// ---------------- *
// Description : This class does the command line processing. *
// Started : 2005-02-22 *
// Last Update : 2016-10-25 *
// Copyright : (C) 2005-2016 MSWaters *
//**************************************************************************************************
//**************************************************************************************************
// *
// This program is free software; you can redistribute it and/or modify it under the *
// terms of the GNU General Public License as published by the Free Software Foundation; *
// either version 3 of the License, or (at your option) any later version. *
// *
//**************************************************************************************************
#ifndef CMDLINEPCR_HPP
#define CMDLINEPCR_HPP
// Application includes
#include "Version.hpp"
#include "TypeDefs.hpp"
#include "process/PrcGNetList.hpp"
// wxWidgets includes
#include <wx/cmdline.h>
#include <wx/filename.h>
//**************************************************************************************************
class CmdLinePcr : wxCmdLineParser
{
private :
int m_iArgC;
wxChar ** m_ppsArgV;
public :
eTypeSimEng m_eSimEng;
// wxString m_osSchemEdit;
eTypeViewer m_eDataViewer;
eTypeCmd m_eAnalysis;
wxString m_osGuileProc;
wxString m_osConfigFile;
wxString m_osNetLstFile;
wxArrayString m_osaSchemFiles;
bool m_bCleanCfgFile;
private :
bool bProcOption_a( int * piArg ); // Analysis page specifier
bool bProcOption_c( int * piArg ); // Rebuild/clean configuration file
bool bProcOption_d( int * piArg ); // Print debug info. to console
bool bProcOption_e( int * piArg ); // Specify the schematic capture / editor program
bool bProcOption_g( int * piArg ); // Specify Guile procedure for importing schematic file/s
bool bProcOption_h( int * piArg ); // Display usage and exit
bool bProcOption_r( int * piArg ); // Specify a configuration file
bool bProcOption_s( int * piArg ); // Simulator engine specifier
bool bProcOption_v( int * piArg ); // Display app. version and exit
bool bProcOption_w( int * piArg ); // Specify the waveform viewer to use
bool bCheckFiles ( int * piArg ); // Check that file names are correct
bool bProcSchems ( int * piArg ); // Schematic file name/s
bool bProcNetList ( int * piArg ); // Netlist file name
void Usage( void );
void Version( void );
public :
CmdLinePcr( void );
~CmdLinePcr( );
bool bClear ( void );
bool bSetCmdLn( int iArgC, wxChar ** ppsArgV );
bool bProcArgs( void );
void Print( const wxString & rosPrefix=wxT(" ") );
};
//**************************************************************************************************
#endif // CMDLINEPCR_HPP