SpectMorph
smstdioout.hh
1 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl-2.1.html
2 
3 #ifndef SPECTMORPH_STDIO_OUT_HH
4 #define SPECTMORPH_STDIO_OUT_HH
5 
6 #include <string>
7 #include "smgenericout.hh"
8 
9 namespace SpectMorph
10 {
11 
12 class StdioOut : public GenericOut
13 {
14  FILE *file;
15 
16  StdioOut (FILE *file);
17 public:
18  static GenericOut* open (const std::string& filename);
19 
20  ~StdioOut();
21  int put_byte (int c);
22  int write (const void *ptr, size_t size);
23 };
24 
25 }
26 
27 #endif /* SPECTMORPH_STDIO_OUT_HH */
Generic Output Stream.
Definition: smgenericout.hh:18
Definition: smstdioout.hh:13
int write(const void *ptr, size_t size)
Definition: smstdioout.cc:45
int put_byte(int c)
Definition: smstdioout.cc:39