MrSID Decode SDK for LiDAR Reference Manual
1.1.4.4709
|
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 #ifdef SWIG 00101 static bool getMrSIDFileVersion(const wchar_t *path, int &version, bool &raster); 00102 #else 00103 static bool getMrSIDFileVersion(const unsigned short *path, int &version, bool &raster); 00104 static bool getMrSIDFileVersion(const __wchar_t *path, int &version, bool &raster); 00105 #endif 00106 #endif 00107 00118 static bool getMrSIDFileVersion(IO *io, int &version, bool &raster); 00130 static bool getMrSIDFileVersion(lt_uint8 header[8], int &version, bool &raster); 00131 }; 00132 00133 LT_END_LIDAR_NAMESPACE 00134 00135 #endif // __LIDAR_VERSION_H__