rllib  1
rlreport.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           rlreport.h  -  description
00003                              -------------------
00004     begin                : Sun Jul 03 2011
00005     copyright            : (C) 2011 pvbrowser
00006     email                : lehrig@t-online.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as        *
00013  *   published by the Free Software Foundation                             *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #ifndef _RL_REPORT_H_
00017 #define _RL_REPORT_H_
00018 
00019 #include <stdio.h>
00020 #include "rldefine.h"
00021 #include "rlinifile.h"
00022 #include "rlstring.h"
00023 
00037 
00040 
00051 
00064 class rlReport
00065 {
00066 public:
00067 
00068   rlReport();
00069   virtual ~rlReport();
00070 
00074   int open(const char *filename);
00075 
00079   int close();
00080   
00084   int printf(const char *format, ...);
00085 
00089   int beginDocument();
00090 
00094   int endDocument();
00095 
00101   int include(const char *filename, rlIniFile *ini=NULL);
00102 
00115   int includeHeader(const char *documentclass = "\\documentclass[a4paper]{article}", 
00116                     const char *language      = "\\usepackage[english]{babel}", 
00117                     const char *inputenc      = "\\usepackage[utf8]{inputenc}",
00118                     const char *layout        = "\\setlength{\\parindent}{0pt} \\setlength{\\topmargin}{-50pt} \\setlength{\\oddsidemargin}{0pt} \\setlength{\\textwidth}{480pt} \\setlength{\\textheight}{700pt}");
00119 
00126   int includeCSV(const char *filename, int use_first_row_as_title=1, const char *legend=NULL, char delimitor='\t');
00127 
00133   int includeImage(const char *filename, const char *legend=NULL, float scale=1.0f);
00134 
00142   int spawn(const char *command);
00147   int pdflatex(const char *command = NULL);
00148   
00149 private:
00150   FILE *fout;    // output file pointer
00151   rlString file; // name of the output file
00152 };
00153 
00154 #endif
00155 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines