I am interested in created a GUI form of storescu.exe and was looking through the source (storescu.cc) but reached a dead end rather quickly.
The entire 2000-line source was a bit too long to individually read through line by line, but I did notice a bit of the organisation in place, though I'm not sure how to find stuffs still.
I skimmed through the top 1/3 of the code and all I gathered was that it was about handling the command line arguments?
I thought that perhaps I could find the code for relevant arguments by searching for the arguments. For example, I tried searching for "aet" to find out how the application title argument was used but all I could find was:
Code: Select all
Line 247: cmd.addOption("--aetitle", "-aet", 1, "aetitle: string", opt1.c_str());
Code: Select all
Line 251: cmd.addOption("--call", "-aec", 1, "aetitle: string", opt2.c_str());
Code: Select all
Line 437 if (cmd.findOption("--aetitle")) app.checkValue(cmd.getValue(opt_ourTitle));
Please pardon my ignorance but I realise most of the source files for the exes are something like that. I feel lost when I look at them. Could anyone enlighten me as to how I can make use of the code efficiently?
Also, while reading http://support.dcmtk.org/docs/storescu.html, I noticed that there are 2 commands with regards to Application Title:
Please pardon my ignorance again, but whats the difference?application entity titles:
-aet --aetitle aetitle: string
set my calling AE title (default: STORESCU)
-aec --call aetitle: string
set called AE title of peer (default: ANY-SCP)
Thanks!