#include <stdio.h>
#include "../../shared/shared.h"
Go to the source code of this file.
◆ NUMPARAMS
◆ OptionsFromAnalysis()
char* OptionsFromAnalysis |
( |
char ** |
ptoolkit, |
|
|
Parameters * |
parameters, |
|
|
int |
analysis_type |
|
) |
| |
Definition at line 595 of file Parameters.cpp.
600 char *outstring = NULL;
601 char *outtoolkit = NULL;
605 int *analyses = NULL;
606 char **strings = NULL;
608 char **toolkits = NULL;
609 char *toolkit = NULL;
618 if(numanalyses==0)
return NULL;
621 for(i=0;i<numanalyses;i++){
622 if(analyses[i]==analysis_type){
629 for(i=0;i<numanalyses;i++){
641 outtoolkit=xNew<char>(strlen(toolkits[found])+1);
642 strcpy(outtoolkit,toolkits[found]);
643 *pouttoolkit = outtoolkit;
646 outstring=xNew<char>(strlen(strings[found])+1);
647 strcpy(outstring,strings[found]);
650 for(i=0;i<numanalyses;i++){
651 xDelete<char>(toolkits[i]);
652 xDelete<char>(strings[i]);
654 xDelete<char*>(toolkits);
655 xDelete<char*>(strings);
656 xDelete<int>(analyses);
◆ ToolkitsOptionsFromAnalysis()
void ToolkitsOptionsFromAnalysis |
( |
Parameters * |
parameters, |
|
|
int |
analysis_type |
|
) |
| |