// file: que_cstr_3.cc
//

// isip include files
//
#include "question.h"
#include "question_constants.h"

// method: constructor
//
// arguments:
//   char_1* attribute: (input) question name
//   logical_1 direction: (input) left or right tag
//   int_4 num: (input) context position
//
// return: none
//
// this is the overloaded constructor
//
Question::Question(char_1* attribute_a, logical_1 direction_a, int_4 num_a) {

  // allocate memorey for the attribute
  //
  attribute_d = new char_1[strlen((char*)attribute_a) + 1];
  strcpy((char*)attribute_d, (char*)attribute_a);  
  
  // set the direction flag and phone position
  //
  direction_d = direction_a;
  num_d = num_a;
  
  // exit gracefully
  //
}
  
