MrSID Decode SDK for LiDAR Reference Manual  1.1.4.4709
Version.h
Go to the documentation of this file.
1 /* //////////////////////////////////////////////////////////////////////////
2 // //
3 // This code is Copyright (c) 2008-2010 LizardTech, Inc, 1008 Western //
4 // Avenue, Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
5 // prohibited. Access to and use of this code is permitted only under //
6 // license from LizardTech, Inc. Portions of the code are protected by //
7 // US and foreign patents and other filings. All Rights Reserved. //
8 // //
10 /* PUBLIC */
11 
12 #ifndef __LIDAR_VERSION_H__
13 #define __LIDAR_VERSION_H__
14 
15 #include "lidar/IO.h"
16 
17 LT_BEGIN_LIDAR_NAMESPACE
18 
22 struct Version
23 {
34  static void getSDKVersion(int &major, int &minor, int &age, int &build)
35  {
36  major = getSDKMajorVersion();
37  minor = getSDKMinorVersion();
38  age = getSDKVersionAge();
39  build = getSDKBuildNumber();
40  }
41 
45  static int getSDKMajorVersion(void);
49  static int getSDKMinorVersion(void);
53  static int getSDKVersionAge(void);
57  static int getSDKBuildNumber(void);
58 
66  static const char * const getSDKVersionString(void);
74  static const char * const getSDKBuildDate(void);
75 
87  static bool getMrSIDFileVersion(const char *path, int &version, bool &raster);
88 #ifdef _WIN32
89 
100 #ifdef SWIG
101  static bool getMrSIDFileVersion(const wchar_t *path, int &version, bool &raster);
102 #else
103  static bool getMrSIDFileVersion(const unsigned short *path, int &version, bool &raster);
104  static bool getMrSIDFileVersion(const __wchar_t *path, int &version, bool &raster);
105 #endif
106 #endif
107 
118  static bool getMrSIDFileVersion(IO *io, int &version, bool &raster);
130  static bool getMrSIDFileVersion(lt_uint8 header[8], int &version, bool &raster);
131 };
132 
133 LT_END_LIDAR_NAMESPACE
134 
135 #endif // __LIDAR_VERSION_H__
static bool getMrSIDFileVersion(const char *path, int &version, bool &raster)
Get the MrSID file version.
static int getSDKBuildNumber(void)
Get the SDK's Build Number.
unsigned char lt_uint8
unsigned 8-bit integer
Definition: Base.h:29
static int getSDKMajorVersion(void)
Get the SDK's Major Version.
static const char *const getSDKVersionString(void)
Get the SDK Version String.
static void getSDKVersion(int &major, int &minor, int &age, int &build)
Get the SDK Version.
Definition: Version.h:34
static int getSDKMinorVersion(void)
Get the SDK's Minor Version.
Functions for geting the SDK version and MrSID file version.
Definition: Version.h:22
IO is the base class for binary input and output.
Definition: IO.h:29
static int getSDKVersionAge(void)
Get the SDK's Version Age.
static const char *const getSDKBuildDate(void)
Get when the SDK was built.

LizardTech