// file:e: $warren/research/exp_001/filt_get_00.cc // version: // // isip include files // #include "Filter.h" // method: getMaCoef // // arguments: VectorFloat& ma_coef (output) a vector of filter coefficients // // return: a boolean value indicating status // boolean Filter::getMaCoef(VectorFloat& ma_coef) { // declare a file object and attach it to an output file // String filename(L"getout.txt"); Sof sof1; sof1.open(filename, File::WRITE_ONLY, Sof::TEXT); // get the filter coefficients--can immediately return since the Vector // assign() method returns type boolean // /*return*/ ma_coef.assign(ma_coef_d); ma_coef.write(sof1, (long)0); sof1.close(); return true; } /* int main(int* argc, char* argv[]) { VectorFloat ma_coef; VectorFloat dum_coef; Filter testFilt; ma_coef.assign(L"1.0, 2.0, 3.0, 3.0, 3.0"); testFilt.setMaCoef(ma_coef); testFilt.getMaCoef(dum_coef); return 0; } */