ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
VerbosePrinter.h
Go to the documentation of this file.
00001 
00009 using namespace std;
00010 
00011 #ifndef STDIO_H
00012 #define STDIO_H //!<Inclusion guard
00013 #include <stdio.h>
00014 #endif
00015 
00016 #ifndef STRING
00017 #define STRING //!<Inclusion guard
00018 #include <string>
00019 #endif
00020 
00021 #ifndef STDARG_H
00022 #define STDARG_H //!<Inclusion guard
00023 #include <stdarg.h>
00024 #endif
00025 
00026 #ifndef LIST
00027 #define LIST //!<Inclusion guard
00028 #include <list>
00029 #endif
00030 
00031 #ifndef ALGORITHM
00032 #define ALGORITHM //!<Inclusion guard
00033 #include <algorithm>
00034 #endif
00035 
00036 
00037 #ifndef VERBOSE_PRINTER_H
00038 #define VERBOSE_PRINTER_H //!<Inclusion guard
00039 class VerbosePrinterEventEnabled;
00045 class VerbosePrinter
00046 {
00047  public:
00048   VerbosePrinter(int verbosityLevel 
00049                  ); 
00050 
00051   VerbosePrinter(int verbosityLevel, 
00052                  string fileName 
00053                  ); 
00054 
00055   ~VerbosePrinter(); 
00056 
00057   bool print(int verbosityLevel, 
00058              const char* , 
00059              ... 
00060              ); 
00061 
00062   bool va_print(int verbosityLevel, 
00063                 const char*, 
00064                 va_list args 
00065                 ); 
00066   
00067   list<VerbosePrinterEventEnabled *> getConnectedEventClasses(); 
00068 
00069   bool registerConnectedEventClass(VerbosePrinterEventEnabled * myEvent 
00070                                    ); 
00071   bool unRegisterConnectedEventClass(VerbosePrinterEventEnabled * myEvent 
00072                                      ); 
00073 
00074   int getVerbosityLevel() const; 
00075 
00076  private:
00077   list<VerbosePrinterEventEnabled *> myConnectedEventClasses; 
00078   int myVerbosityLevel; 
00079   FILE * myFile; 
00080 };
00081 #endif
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark