00001 00007 #ifndef LATEXTABELLENLOGGER_H_ 00008 #define LATEXTABELLENLOGGER_H_ 00009 00010 #include <string> 00011 #include <stdexcept> 00012 #include <fstream> 00013 #include <iostream> 00014 00015 using namespace std; 00016 00022 class LatexTabellenLogger 00023 { 00024 public: 00033 LatexTabellenLogger(const string &Dateiname,unsigned int Spalten,unsigned int ExpSchr=3,const char *localestr="german") throw(std::runtime_error); 00034 00038 ~LatexTabellenLogger(); 00039 00043 void setzeBeschriftung(const string &beschr) { caption = beschr; } 00044 00048 void setzeBezeichnung(const string &bezeichnung) { label = bezeichnung; } 00049 00050 00055 LatexTabellenLogger &operator<<(string wert); 00056 00061 LatexTabellenLogger &operator<<(double wert) { return LatexTabellenLogger::operator<<((long double) wert); } 00062 00067 LatexTabellenLogger &operator<<(long double wert); 00068 00073 LatexTabellenLogger &operator<<(float wert) { return LatexTabellenLogger::operator<<((long double) wert); } 00074 00079 LatexTabellenLogger &operator<<(int wert); 00080 00085 LatexTabellenLogger &operator<<(unsigned int wert); 00086 00087 protected: 00088 string caption; 00089 string label; 00090 ofstream ausgabe; 00091 unsigned int spalten; 00092 unsigned int akt_sp; 00093 bool header_geschr; 00094 long double minv; 00095 long double maxv; 00096 }; 00097 00109 #endif /* LATEXTABELLENLOGGER_H_ */