SpectMorph
smmemout.hh
1 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl-2.1.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 */
Generic Output Stream.
Definition: smgenericout.hh:18
Definition: smmemout.hh:14
int write(const void *ptr, size_t size)
Definition: smmemout.cc:32
int put_byte(int c)
Definition: smmemout.cc:25