Bufferer.hpp

00001 
00008 #ifndef BUFFERER_HPP
00009 #define BUFFERER_HPP
00010 
00011 using namespace cv;
00012 using namespace std;
00013 
00026 class Bufferer
00027 {
00028 
00029 public:
00039 private:
00040 
00041         fstream buff;
00042 
00043 public:
00044 
00045         Bufferer(string fpath,ios_base::openmode mode);
00046 
00047         long writeHeader(const string &str);
00048         void readHeader(const string &str);
00049         void writeSize(long spos);
00050 
00051         void write(const string &str);
00052         void read(string &str);
00053         
00054         void write(string name,const std::vector<string> &value);
00055         void read(string name,std::vector<string> &value);
00056 
00057         void write(string name,const  std::vector< std::vector<int> > &value);
00058         void read(string name,std::vector< std::vector<int> > &value);
00059         
00060         void write(string name,int value);
00061         void read(string name,int &value);
00062                 
00063         void write(string name,const std::vector<int> &value);
00064         void read(string name,std::vector<int> &value);
00065 
00066         void write(string name,bool value);
00067         void read(string name,bool &value);     
00068 
00069         void write(string name,const std::vector<bool> &value);
00070         void read(string name,std::vector<bool> &value);
00071 
00072         void write(string name,unsigned char value);
00073         void read(string name,unsigned char &value);
00074         
00075         void write(string name,double value);
00076         void read(string name,double &value);
00077         
00078         void write(string name,const std::vector<double> &value);
00079         void read(string name,std::vector<double> &value);
00080 
00081         void write(string name,const  std::vector< std::vector<double> > &value);
00082         void read(string name,std::vector< std::vector<double> > &value);
00083 
00084         void write(string name,const Mat &value);
00085         void read(string name,Mat &value);
00086 
00087         void write(string name,const std::vector<Mat> &value);
00088         void read(string name,std::vector<Mat> &value);
00089                 
00090         void write(const Point3i &p);
00091         void read(Point3i &p);
00092 
00093         void write(string name,const std::vector<Point3i> &value);
00094         void read(string name,std::vector<Point3i> &value);
00095 
00096         void write(string name,const std::vector<Point2i> &value);
00097         void read(string name,std::vector<Point2i> &value);
00098                         
00099         void write(const DytexOptions &opt);
00100         void read(DytexOptions &opt);   
00101 
00102         void write(const DytexRegOptions &opt);
00103         void read(DytexRegOptions &opt);        
00104 
00105         void write(const CovMatrix &cm);
00106         void read(CovMatrix &cm);
00107 
00108         void write(const PatchOptions &popt);
00109         void read(PatchOptions &popt);
00110 
00111         void write(const PatchExtractor &pe);   
00112         void read(PatchExtractor &pe);  
00113         
00114         void write(const Dytex &dt);
00115         void read(Dytex &dt);
00116                 
00117         void write(const DytexMix &dtm);        
00118         void read(DytexMix &dtm);       
00119                 
00120         void close();
00121 };
00122 
00123 
00124 #endif

Generated on 18 Dec 2014 for libdt-OpenCV by  doxygen 1.6.1