musrWiz 0.1.0
Loading...
Searching...
No Matches
musrWiz.cpp File Reference
#include <iostream>
#include <fstream>
#include <memory>
#include <QApplication>
#include <QProcess>
#include <QMessageBox>
#include <QObject>
#include "musrWiz.h"
#include "PAdmin.h"
#include "PMusrWiz.h"

Functions

void musrWiz_syntax ()
 Prints the command-line syntax help for musrWiz.
 
int main (int argc, char *argv[])
 Main entry point for the musrWiz application.
 

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Main entry point for the musrWiz application.

Parses command-line arguments and launches the musrWiz wizard GUI. Creates the 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.

Parameters
argcNumber of command-line arguments.
argvArray of command-line argument strings.
Returns
0 on success (or –help/–version), 1 on initialization failure, or the wizard result code.

◆ musrWiz_syntax()

void musrWiz_syntax ( )

Prints the command-line syntax help for musrWiz.

Displays usage information including available command-line options:

  • –version/-v: prints git version information
  • –debug [0|1|2]: enables debug output for instrument definitions and/or functions
  • –log: writes a log file with the generated msr-file path
  • –help: shows this help