mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 23:36:43 +00:00
19025d77ad
Reorganized. Created a new top level include directory that will hold all of Trick's header files. Moved all of the Trick headers to this directory. Created a libexec directory that holds all of the executables that users don't need to execute directly. Changed all of the executables remaining in bin to start with "trick-". In the sim_services directories changed all source files to find the Trick headers in their new location. Since all of the include files are gone in sim_services, removed the src directories as well, moving all of the source files up a level. Moved the makefiles, docs, man, and other architecture independent files into a top level share directory. Renamed lib_${TRICK_HOST_CPU} to lib64 or lib depending on the platform we're currently on. refs #63
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
/*
|
|
PURPOSE: ( Handle the simulation command line args )
|
|
|
|
REFERENCE: ( Trick Simulation Environment )
|
|
|
|
ASSUMPTIONS AND LIMITATIONS: ( None )
|
|
|
|
CLASS: ( N/A )
|
|
|
|
LIBRARY DEPENDENCY: ( None )
|
|
|
|
PROGRAMMERS: ( Keith Vetter LinCom 6/2003 ) */
|
|
|
|
#include <iostream>
|
|
#include <string.h>
|
|
|
|
#include "trick/InputProcessor.hh"
|
|
#include "trick/command_line_protos.h"
|
|
|
|
Trick::InputProcessor * the_ip ;
|
|
|
|
Trick::InputProcessor::InputProcessor() {
|
|
|
|
the_ip = this ;
|
|
|
|
}
|
|
|
|
int Trick::InputProcessor::process_sim_args() {
|
|
|
|
int i ;
|
|
int argc ;
|
|
char ** argv ;
|
|
|
|
argc = command_line_args_get_argc() ;
|
|
argv = command_line_args_get_argv() ;
|
|
input_file = command_line_args_get_input_file() ;
|
|
|
|
/* Process all other calling arguments */
|
|
for (i = 2; i < argc; i++) {
|
|
|
|
/*
|
|
* If there are more than 2 calling arguments
|
|
*/
|
|
|
|
if (!strncmp("-d", argv[i], (size_t) 2)) {
|
|
/* Set the 'input verification only' and echo input flags */
|
|
verify_input = 1 ;
|
|
}
|
|
}
|
|
|
|
return(0) ;
|
|
|
|
}
|
|
|
|
int Trick::InputProcessor::shutdown() {
|
|
return(0) ;
|
|
}
|
|
|