\doxysection{/workspace/\+LMU/musrfit/src/musredit\+\_\+qt6/musr\+Wiz/musr\+Wiz.cpp File Reference}
\hypertarget{musrWiz_8cpp}{}\label{musrWiz_8cpp}\index{/workspace/LMU/musrfit/src/musredit\_qt6/musrWiz/musrWiz.cpp@{/workspace/LMU/musrfit/src/musredit\_qt6/musrWiz/musrWiz.cpp}}
{\ttfamily \#include $<$iostream$>$}\newline
{\ttfamily \#include $<$fstream$>$}\newline
{\ttfamily \#include $<$memory$>$}\newline
{\ttfamily \#include $<$QApplication$>$}\newline
{\ttfamily \#include $<$QProcess$>$}\newline
{\ttfamily \#include $<$QMessage\+Box$>$}\newline
{\ttfamily \#include $<$QObject$>$}\newline
{\ttfamily \#include "{}musr\+Wiz.\+h"{}}\newline
{\ttfamily \#include "{}PAdmin.\+h"{}}\newline
{\ttfamily \#include "{}PMusr\+Wiz.\+h"{}}\newline
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{musrWiz_8cpp_abb0d2a6ad13db494b6c6e85aabff667e}{musr\+Wiz\+\_\+syntax}} ()
\begin{DoxyCompactList}\small\item\em Prints the command-\/line syntax help for musr\+Wiz. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{musrWiz_8cpp_a0ddf1224851353fc92bfbff6f499fa97}{main}} (int argc, char \texorpdfstring{$\ast$}{*}argv\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Main entry point for the musr\+Wiz application. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\Hypertarget{musrWiz_8cpp_a0ddf1224851353fc92bfbff6f499fa97}\index{musrWiz.cpp@{musrWiz.cpp}!main@{main}}
\index{main@{main}!musrWiz.cpp@{musrWiz.cpp}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily \label{musrWiz_8cpp_a0ddf1224851353fc92bfbff6f499fa97} 
int main (\begin{DoxyParamCaption}\item[{int}]{argc}{, }\item[{char \texorpdfstring{$\ast$}{*}}]{argv}{\mbox{[}$\,$\mbox{]}}\end{DoxyParamCaption})}



Main entry point for the musr\+Wiz application. 

Parses command-\/line arguments and launches the musr\+Wiz wizard GUI. Creates the \doxylink{classPAdmin}{PAdmin} object to load configuration files (instrument definitions, musrfit functions, etc.) and then starts the wizard workflow.

After the wizard completes, if requested via --log option, writes a log file containing the path to the generated msr-\/file. If musrt0 should be called (T0\+\_\+\+FROM\+\_\+\+MUSR\+\_\+\+T0), either logs this flag or starts musrt0 directly.


\begin{DoxyParams}{Parameters}
{\em argc} & Number of command-\/line arguments. \\
\hline
{\em argv} & Array of command-\/line argument strings. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success (or --help/--version), 1 on initialization failure, or the wizard result code. 
\end{DoxyReturn}
\Hypertarget{musrWiz_8cpp_abb0d2a6ad13db494b6c6e85aabff667e}\index{musrWiz.cpp@{musrWiz.cpp}!musrWiz\_syntax@{musrWiz\_syntax}}
\index{musrWiz\_syntax@{musrWiz\_syntax}!musrWiz.cpp@{musrWiz.cpp}}
\doxysubsubsection{\texorpdfstring{musrWiz\_syntax()}{musrWiz\_syntax()}}
{\footnotesize\ttfamily \label{musrWiz_8cpp_abb0d2a6ad13db494b6c6e85aabff667e} 
void musr\+Wiz\+\_\+syntax (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})}



Prints the command-\/line syntax help for musr\+Wiz. 

Displays usage information including available command-\/line options\+:
\begin{DoxyItemize}
\item --version/-\/v\+: prints git version information
\item --debug \mbox{[}0\texorpdfstring{$\vert$}{|}1\texorpdfstring{$\vert$}{|}2\mbox{]}\+: enables debug output for instrument definitions and/or functions
\item --log\+: writes a log file with the generated msr-\/file path
\item --help\+: shows this help 
\end{DoxyItemize}