SpectMorph
smstdioout.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.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 */
int put_byte(int c)
Definition: smstdioout.cc:39
Definition: smstdioout.hh:12
Definition: smalignedarray.cc:7
Generic Output Stream.
Definition: smgenericout.hh:17
int write(const void *ptr, size_t size)
Definition: smstdioout.cc:45