40 |
*******************************************************************/ |
*******************************************************************/ |
41 |
/** |
/** |
42 |
** \file common.hh |
** \file common.hh |
43 |
** Define common function used for test |
** Define common(i/o) function used for test |
44 |
*/ |
*/ |
45 |
|
|
46 |
#ifndef COMMON_HH |
#ifndef COMMON_HH |
47 |
# define COMMON_HH |
# define COMMON_HH |
48 |
# include "../type/discsignal.hh" |
# include "../type/discsignal.hh" |
49 |
|
|
50 |
DiscSignal *get_from_file(char *str); |
/** \brief get a discret signal from a file. this file has a specific format |
51 |
void print_to_file(DiscSignal *sig, char*); |
** on the first line, the number of sample, and the second, all sample |
52 |
|
** separed by one space |
53 |
|
** \param file: the file to open |
54 |
|
*/ |
55 |
|
DiscSignal *get_from_file(char *file); |
56 |
|
|
57 |
|
/** \brief print a discret signal to a file. this file has the same |
58 |
|
** format as specified for get_from_file. |
59 |
|
** \param sig: signal to print |
60 |
|
** \param file: the file to create |
61 |
|
*/ |
62 |
|
void print_to_file(DiscSignal *sig, char *file); |
63 |
|
|
64 |
|
|
65 |
#endif |
#endif |