You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.1 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2023 Mike Williams <mike@mikebwilliams.com>
  5. * Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
  6. *
  7. * This program is free software: you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation, either version 3 of the License, or (at your
  10. * option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #ifndef JOB_EXPORT_SCH_BOM_H
  21. #define JOB_EXPORT_SCH_BOM_H
  22. #include <wx/string.h>
  23. #include "job.h"
  24. class JOB_EXPORT_SCH_BOM : public JOB
  25. {
  26. public:
  27. JOB_EXPORT_SCH_BOM( bool aIsCli ) :
  28. JOB( "bom", aIsCli ),
  29. m_filename(),
  30. m_outputFile(),
  31. m_fieldDelimiter(),
  32. m_stringDelimiter(),
  33. m_refDelimiter(),
  34. m_refRangeDelimiter(),
  35. m_keepTabs( false ),
  36. m_keepLineBreaks( false ),
  37. m_fieldsOrdered(),
  38. m_fieldsLabels(),
  39. m_fieldsGroupBy(),
  40. m_sortField(),
  41. m_sortAsc( true ),
  42. m_filterString(),
  43. m_excludeDNP( false )
  44. {
  45. }
  46. // Basic options
  47. wxString m_filename;
  48. wxString m_outputFile;
  49. // Format options
  50. wxString m_fieldDelimiter;
  51. wxString m_stringDelimiter;
  52. wxString m_refDelimiter;
  53. wxString m_refRangeDelimiter;
  54. bool m_keepTabs;
  55. bool m_keepLineBreaks;
  56. // Fields options
  57. std::vector<wxString> m_fieldsOrdered;
  58. std::vector<wxString> m_fieldsLabels;
  59. std::vector<wxString> m_fieldsGroupBy;
  60. wxString m_sortField;
  61. bool m_sortAsc;
  62. wxString m_filterString;
  63. bool m_excludeDNP;
  64. };
  65. #endif