SpectMorph
smmemout.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_MEM_OUT_HH
4 #define SPECTMORPH_MEM_OUT_HH
5 
6 #include <string>
7 #include <vector>
8 #include "smgenericout.hh"
9 
10 namespace SpectMorph
11 {
12 
13 class MemOut : public GenericOut
14 {
15  std::vector<unsigned char> *output;
16 
17 public:
18  MemOut (std::vector<unsigned char> *output);
19  ~MemOut();
20 
21  int put_byte (int c);
22  int write (const void *ptr, size_t size);
23 };
24 
25 }
26 
27 #endif /* SPECTMORPH_MEM_OUT_HH */
Definition: smmemout.hh:13
Definition: smalignedarray.cc:7
Generic Output Stream.
Definition: smgenericout.hh:17
int write(const void *ptr, size_t size)
Definition: smmemout.cc:32
int put_byte(int c)
Definition: smmemout.cc:25