JpegStreamSaver.h
Go to the documentation of this file.
00001 #ifndef JPEG_STREAM_SAVER_H
00002 #define JPEG_STREAM_SAVER_H
00003 
00004 #include <string>
00005 
00006 class JpegStreamSaver
00007 {
00008         protected:
00009                 std::string directory;
00010                 std::string base;
00011                 unsigned int counter;
00012 
00013         public:
00014                 JpegStreamSaver() : directory("/tmp"), base("stream") {counter = 0;}
00015                 JpegStreamSaver(const std::string & dir,
00016                                 const std::string & b) :
00017                         directory(dir), base(b) { counter = 0;}
00018                 ~JpegStreamSaver() {}
00019 
00020                 void setDirectory(const std::string & dir) {
00021                         directory = dir;
00022                 }
00023 
00024                 void setBase(const std::string & b) {
00025                         base = b;
00026                 }
00027 
00028                 bool record(const char * buffer, unsigned int size);
00029 
00030 };
00031 
00032 #endif // JPEG_STREAM_SAVER_H


canon_vbc50i
Author(s): Cedric Pradalier
autogenerated on Sun Oct 5 2014 23:47:45