11.07.2014 Views

Flute acoustics: measurement, modelling and design - School of ...

Flute acoustics: measurement, modelling and design - School of ...

Flute acoustics: measurement, modelling and design - School of ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX B. PROGRAM LISTINGS 273<br />

Listing B.18: ParseImpedance.h<br />

/*<br />

ParseImpedance.h<br />

By Andrew Botros, 2001-2004<br />

Modified by Paul Dickens Apr 2005, 2006<br />

ParseImpedance.c reads an acoustic impedance spectra file <strong>and</strong><br />

returns a Vector <strong>of</strong> Vectors <strong>of</strong> Points.<br />

*/<br />

#ifndef PARSEIMPEDANCE_H_PROTECTOR<br />

#define PARSEIMPEDANCE_H_PROTECTOR<br />

#include "Vector.h"<br />

int parseImpedanceFile(Vector filev, char* filename);<br />

/*<br />

Reads each line <strong>of</strong> a given acoustic impedance spectra file<br />

<strong>and</strong> constructs a Vector <strong>of</strong> Vectors <strong>of</strong> Points<br />

representing the file.<br />

Parameters:<br />

filev: the return Vector<br />

filename: the name <strong>of</strong> the file to read<br />

Returns:<br />

1 if the operatioon was successful<br />

0 otherwise<br />

*/<br />

#endif

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!