KiCad PCB EDA Suite
build_version.cpp File Reference
#include <fctsys.h>
#include <kicad_build_version.h>

Go to the source code of this file.

Functions

wxString GetBuildVersion ()
 Function GetBuildVersion Return the build version string. More...
 
wxString GetBuildDate ()
 Function GetBuildDate. More...
 

Function Documentation

◆ GetBuildDate()

wxString GetBuildDate ( )

Function GetBuildDate.

Returns
the build date string

Definition at line 50 of file build_version.cpp.

51 {
52  wxString msg = wxString::Format( wxT( "%s %s" ), wxT( __DATE__ ), wxT( __TIME__ ) );
53  return msg;
54 }
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205

References Format().

Referenced by buildKicadAboutBanner().

◆ GetBuildVersion()

wxString GetBuildVersion ( )

Function GetBuildVersion Return the build version string.

Function GetBuildVersion Return the build date and version.

Definition at line 38 of file build_version.cpp.

39 {
40  wxString msg = wxString::Format( wxT( "%s" ), wxT( KICAD_VERSION_FULL ) );
41  return msg;
42 }
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205

References Format().

Referenced by AddGerberX2Header(), GERBER_JOBFILE_WRITER::addJSONHeader(), WS_DRAW_ITEM_LIST::BuildFullText(), buildKicadAboutBanner(), CreateHeaderInfoData(), EVT_MENU_RANGE(), PCB_EDIT_FRAME::Export_IDF3(), PLACE_FILE_EXPORTER::GenPositionData(), PLACE_FILE_EXPORTER::GenReportData(), NETLIST_EXPORTER_GENERIC::makeDesignHeader(), DSN::PARSER::PARSER(), CLIPBOARD_IO::Save(), PCB_IO::Save(), CLIPBOARD_IO::SaveSelection(), KICAD_MANAGER_FRAME::SetProjectFileName(), GERBER_PLOTTER::StartPlot(), EXCELLON_WRITER::writeEXCELLONHeader(), NETLIST_EXPORTER_CADSTAR::WriteNetlist(), and GBR_TO_PCB_EXPORTER::writePcbHeader().