4 # ------------------------------------------------------------------------------------------
6 # Toolkit for acoustics scripts.
8 # ------------------------------------------------------------------------------------------
10 if [ -z $JPP_DIR ];
then
11 echo "Variable JPP_DIR undefined."
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
18 usage "source $script"\
19 "\nToolkit for acoustics scripts."
24 # Method to add tripod data from given file into associative array.
27 # \param 2 associative array
31 set_local_variable __FILE__ $1
32 set_local_variable __ARRAY__ $2
34 while read __line__;
do
36 if [[ -
n "$__line__" &&
"$__line__" != \#* ]];
then
38 echo $__line__ |
read __id__ __x__ __y__ __z__
40 eval ${__ARRAY__}\[${__id__}\]=\
"$__x__ $__y__ $__z__\"
48 # Method to write tripod data from given file into associative array.
51 # \param 2 associative array
53 function get_tripods()
62 # Method to add transmitter data from given file into associative array.
65 # \param 2 associative array
67 function get_transmitters+()
69 set_local_variable __FILE__ $1
70 set_local_variable __ARRAY__ $2
72 while read __line__; do
74 if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then
76 echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__
78 eval ${__ARRAY__}\[${__id__}\]=\"$__x__ $__y__ $__z__\"
86 # Method to write transmitter data from given file into associative array.
89 # \param 2 associative array
91 function get_transmitters()
95 get_transmitters+ $1 $2
100 # Method to print string numbers of strings with with transmitter.
103 # \return string numbers
105 function get_strings_with_transmitter()
107 set_local_variable __FILE__ $1
109 while read __line__; do
111 if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then
113 echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__
115 echo -n " $__string__
"
125 # Method to print string numbers of strings with with hydrophone.
128 # \return string numbers
130 function get_strings_with_hydrophone()
132 set_local_variable __FILE__ $1
134 while read __line__; do
136 if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then
138 echo $__line__ | read __string__ __floor__ __x__ __y__ __z__
140 echo -n " $__string__
"
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null