33 #define GSEXX_WRITE_EXAMPLE_VERSION \ 34 "GSEXX_WRITE_EXAMPLE V1.0 Example for writing GSE data" 35 #define GSEXX_WRITE_EXAMPLE_CVSID \ 50 int main(
int iargc,
char* argv[])
55 cout <<
"This program provides an example of basic writing to" << endl
56 <<
"GSE data files. The program will write two traces" << endl
57 <<
"of CM6 encoded data to a file called '" 67 const int nsamples=2000;
76 wid2line.Fseconds=12.456789;
90 std::cout << wid2line.
line();
93 os << wid2line.
line();
103 int sample=int(1.e5*std::sin(i*2.*3.141592653*5./(nsamples-35)));
105 os << writer(sample);
113 const int nsamples=2300;
122 std::cout << wid2line.
line();
125 os << wid2line.
line();
135 int sample=int(1.2e5*(std::sin(i*2.*3.141592653*5./(nsamples-35))
136 +std::cos(i*2.*3.141592653*5.5/(nsamples-35))));
138 os << writer(sample);
144 cout <<
"data file is written..." << endl;
GSE++ library: read and write GSE waveform data (prototypes).
#define GSEXX_WRITE_EXAMPLE_VERSION
#define GSEXX_WRITE_EXAMPLE_CVSID
int main(int iargc, char *argv[])