DLVersions.h

Go to the documentation of this file.
00001 #ifndef DLVERSIONS_H
00002 #define DLVERSIONS_H
00003 
00004 #include "png.h"
00005 #include "jpeglib.h"
00006 #include "tiffvers.h"
00007 #include "zlib.h"
00008 #include <iostream>
00009 #include <string>
00010 #include <sstream>
00011 
00016 
00017 const static  char DL_VERSION[] =  "DOCLIB Beta 1.0 - $Name:  $";
00018 
00020 const static int  DL_JPG_VERSION   = JPEG_LIB_VERSION;
00021 const static char DL_TIF_VERSION[] = TIFFLIB_VERSION_STR;
00022 const static char DL_PNG_VERSION[] = PNG_LIBPNG_VER_STRING;
00023 const static char DL_Z_VERSION[]   = ZLIB_VERSION;
00024 
00030 class DLVersions
00031 {
00032    private:
00033    protected:
00034    public:
00035 
00040    static void dlPrintAllVersionInfo() {
00041       /*    cout << endl;
00042             cout << "Version Information" << endl;
00043             cout << "DOCLIB:\t" << DL_VERSION << endl;
00044             cout << "\nLIBTIF:\t" << DL_TIF_VERSION << endl;
00045             cout << "\nLIBJPG:\t" << DL_JPG_VERSION << endl 
00046             << JCOPYRIGHT << endl;
00047             cout << "\nLIBPNG:\t" << DL_PNG_VERSION << endl;
00048             cout << "\nZLIB:\t" << DL_Z_VERSION << endl;
00049             cout << endl; */
00050       cout << dlGetAllVersionInfo();
00051    }
00052 
00058    static string dlGetAllVersionInfo() {
00059       string jpgVersion;
00060       stringstream out;
00061       out << DL_JPG_VERSION;
00062 
00063       jpgVersion = out.str();
00064 
00065       string versionInfo = "";
00066 
00067       versionInfo = versionInfo + "\nVersion Information";
00068       versionInfo = versionInfo + "\nDOCLIB:\t" + DL_VERSION + "\n";
00069       versionInfo = versionInfo + "\nLIBTIF:\t" + DL_TIF_VERSION + "\n";
00070       versionInfo = versionInfo + "\nLIBJPG:\t" + jpgVersion + "\n";
00071       versionInfo = versionInfo + "\nLIBPNG:\t" + DL_PNG_VERSION + "\n";
00072       versionInfo = versionInfo + "\nZLIB:\t" + DL_Z_VERSION + "\n";
00073 
00074       return versionInfo;
00075    }
00076 
00077 };
00078 
00079 #endif // DLVERSIONS_H

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007