// file: pfil_get_2.cc
//

// system include files
//
#include <stdlib.h>
#include <string.h>

// isip include files
//
#include "param_file.h"
#include "param_file_constants.h"

// method: get_param_names_cc
//
// arguments:
//  char_1** param_list: (output) array of all the parameters
//
// return: logical error status
//
// this method gets the value of parameter
//
logical_1 Param_file::get_param_names_cc(char_1** param_list_a) {

  // make sure memory is allocated for the parameter list
  //
  if (param_list_a == (char_1**)NULL) {
    error_handler_cc ((char_1*) "get_param_names_cc",
		      (char_1*) "output memory is not allocated");
  }
  
  // loop through to copy parameter list over
  //
  for (int_4 i=0;i<num_params_d;i++) {
    if (param_list_a[i] == (char_1*)NULL) {
      error_handler_cc ((char_1*) "get_param_names_cc",
			(char_1*) "output memory is not allocated");
    }
    strcpy ((char*)param_list_a[i], (char*)params_d[i]);
  }

  // exit gracefully
  //
  return ISIP_TRUE;  
}
