MrSID Decode SDK for LiDAR Reference Manual  1.1.5.5244
Version.h
Go to the documentation of this file.
1 //
2 // This code is property of Celartem, Inc dba Extensis.
3 // Copyright (c) 1995-2023. All rights reserved.
4 // Use permitted only under license from Extensis.
5 //
6 /* PUBLIC */
7 
8 #ifndef __LIDAR_VERSION_H__
9 #define __LIDAR_VERSION_H__
10 
11 #include "lidar/IO.h"
12 
13 LT_BEGIN_LIDAR_NAMESPACE
14 
18 struct Version
19 {
30  static void getSDKVersion(int &major, int &minor, int &age, int &build)
31  {
32  major = getSDKMajorVersion();
33  minor = getSDKMinorVersion();
34  age = getSDKVersionAge();
35  build = getSDKBuildNumber();
36  }
37 
41  static int getSDKMajorVersion(void);
45  static int getSDKMinorVersion(void);
49  static int getSDKVersionAge(void);
53  static int getSDKBuildNumber(void);
54 
62  static const char * const getSDKVersionString(void);
70  static const char * const getSDKBuildDate(void);
71 
83  static bool getMrSIDFileVersion(const char *path, int &version, bool &raster);
84 #ifdef _WIN32
96 #ifdef SWIG
97  static bool getMrSIDFileVersion(const wchar_t *path, int &version, bool &raster);
98 #else
99  static bool getMrSIDFileVersion(const unsigned short *path, int &version, bool &raster);
100  static bool getMrSIDFileVersion(const __wchar_t *path, int &version, bool &raster);
101 #endif
102 #endif
114  static bool getMrSIDFileVersion(IO *io, int &version, bool &raster);
126  static bool getMrSIDFileVersion(lt_uint8 header[8], int &version, bool &raster);
127 };
128 
129 LT_END_LIDAR_NAMESPACE
130 
131 #endif // __LIDAR_VERSION_H__
unsigned char lt_uint8
unsigned 8-bit integer
Definition: Base.h:25
IO is the base class for binary input and output.
Definition: IO.h:26
Functions for geting the SDK version and MrSID file version.
Definition: Version.h:19
static int getSDKVersionAge(void)
Get the SDK's Version Age.
static int getSDKMinorVersion(void)
Get the SDK's Minor Version.
static int getSDKMajorVersion(void)
Get the SDK's Major Version.
static int getSDKBuildNumber(void)
Get the SDK's Build Number.
static void getSDKVersion(int &major, int &minor, int &age, int &build)
Get the SDK Version.
Definition: Version.h:30
static bool getMrSIDFileVersion(const char *path, int &version, bool &raster)
Get the MrSID file version.
static const char *const getSDKVersionString(void)
Get the SDK Version String.
static bool getMrSIDFileVersion(lt_uint8 header[8], int &version, bool &raster)
Get the MrSID file version.
static const char *const getSDKBuildDate(void)
Get when the SDK was built.
static bool getMrSIDFileVersion(IO *io, int &version, bool &raster)
Get the MrSID file version.

Extensis