MrSID Decode SDK for LiDAR Reference Manual  1.1.3.4427
Version.h
Go to the documentation of this file.
00001 /* //////////////////////////////////////////////////////////////////////////
00002 //                                                                         //
00003 // This code is Copyright (c) 2008-2010 LizardTech, Inc, 1008 Western      //
00004 // Avenue, Suite 200, Seattle, WA 98104.  Unauthorized use or distribution //
00005 // prohibited.  Access to and use of this code is permitted only under     //
00006 // license from LizardTech, Inc.  Portions of the code are protected by    //
00007 // US and foreign patents and other filings. All Rights Reserved.          //
00008 //                                                                         //
00010 /* PUBLIC */
00011 
00012 #ifndef __LIDAR_VERSION_H__
00013 #define __LIDAR_VERSION_H__
00014 
00015 #include "lidar/IO.h"
00016 
00017 LT_BEGIN_LIDAR_NAMESPACE
00018 
00022 struct Version
00023 {
00034    static void getSDKVersion(int &major, int &minor, int &age, int &build)
00035    {
00036       major = getSDKMajorVersion();
00037       minor = getSDKMinorVersion();
00038       age = getSDKVersionAge();
00039       build = getSDKBuildNumber();
00040    }
00041 
00045    static int getSDKMajorVersion(void);
00049    static int getSDKMinorVersion(void);
00053    static int getSDKVersionAge(void);
00057    static int getSDKBuildNumber(void);
00058 
00066    static const char * const getSDKVersionString(void);
00074    static const char * const getSDKBuildDate(void);
00075 
00087    static bool getMrSIDFileVersion(const char *path, int &version, bool &raster);
00088 #ifdef _WIN32
00089 
00100    static bool getMrSIDFileVersion(const wchar_t *path, int &version, bool &raster);
00101 #endif
00102 
00113    static bool getMrSIDFileVersion(IO *io, int &version, bool &raster);
00125    static bool getMrSIDFileVersion(lt_uint8 header[8], int &version, bool &raster);
00126 };
00127 
00128 LT_END_LIDAR_NAMESPACE
00129 
00130 #endif // __LIDAR_VERSION_H__