SAGA API  v9.6
saga_api.cpp File Reference
#include "saga_api.h"

Go to the source code of this file.

Functions

const SG_CharSAGA_API_Get_Version (void)
 
int SG_Compare_Version (const CSG_String &Version, int Major, int Minor, int Release)
 
int SG_Compare_Version (const CSG_String &Version, const CSG_String &Release)
 
int SG_Compare_SAGA_Version (int Major, int Minor, int Release)
 
int SG_Compare_SAGA_Version (const CSG_String &Version)
 

Function Documentation

◆ SAGA_API_Get_Version()

const SG_Char* SAGA_API_Get_Version ( void  )

Definition at line 63 of file saga_api.cpp.

References SAGA_VERSION, and SG_T.

◆ SG_Compare_SAGA_Version() [1/2]

int SG_Compare_SAGA_Version ( const CSG_String Version)

Compares to current SAGA version and returns -1 if it is less, 1 if it is greater or 0 if it is equal. Version string is assumed to have the form 'Major.Minor.Release'.

Definition at line 146 of file saga_api.cpp.

References CSG_String::AfterFirst(), CSG_String::AfterLast(), CSG_String::asInt(), and SG_Compare_SAGA_Version().

◆ SG_Compare_SAGA_Version() [2/2]

int SG_Compare_SAGA_Version ( int  Major,
int  Minor,
int  Release 
)

Compares to current SAGA version and returns -1 if it is less, 1 if it is greater or 0 if it is equal.

Definition at line 125 of file saga_api.cpp.

References SAGA_MAJOR_VERSION, SAGA_MINOR_VERSION, and SAGA_RELEASE_NUMBER.

Referenced by SG_Compare_SAGA_Version().

◆ SG_Compare_Version() [1/2]

int SG_Compare_Version ( const CSG_String Version,
const CSG_String Release 
)

Compares two versions numbers. Returns -1 if it is less, 1 if it is greater or 0 if it is equal. Version strings are assumed to have the form 'Major.Minor.Release'.

Definition at line 108 of file saga_api.cpp.

References CSG_String::AfterFirst(), CSG_String::AfterLast(), CSG_String::asInt(), and SG_Compare_Version().

◆ SG_Compare_Version() [2/2]

int SG_Compare_Version ( const CSG_String Version,
int  Major,
int  Minor,
int  Release 
)

Compares two versions numbers. Returns -1 if it is less, 1 if it is greater or 0 if it is equal. Version string is assumed to have the form 'Major.Minor.Release'.

Definition at line 82 of file saga_api.cpp.

References CSG_String::AfterFirst(), CSG_String::AfterLast(), and CSG_String::asInt().

Referenced by CSG_Tool_Chain::Create(), CSG_Classifier_Supervised::Load(), and SG_Compare_Version().