ImagingTools Core SDK
imtcore Namespace Reference

Core SDK Version and Metadata Module. More...

Detailed Description

Core SDK Version and Metadata Module.

The imtcore module provides version information and core metadata for the ImtCore SDK, enabling version checking, compatibility validation, and SDK identification across applications.

Overview

This lightweight module serves as the identity provider for the ImtCore SDK:

Architecture

Version Management

Version Identification:**

enum VersionId {
VI_IMTCORE = 1977 // ImtCore SDK version identifier
};

The version identifier serves as:

Usage Examples

Version Checking

Check SDK Version:**

#include <imtcore/Version.h>
void CheckSdkVersion()
{
// Get SDK version
int sdkVersion = imtcore::VI_IMTCORE;
qDebug() << "ImtCore SDK Version:" << sdkVersion;
// Verify minimum required version
const int REQUIRED_VERSION = 1977;
if (sdkVersion < REQUIRED_VERSION) {
qFatal("ImtCore SDK version too old. Required: %d, Found: %d",
REQUIRED_VERSION, sdkVersion);
}
}

Plugin Compatibility

Plugin Version Validation:**

class CMyPluginComp : public ACF_COMPONENT(IMyPlugin)
{
public:
int GetRequiredSdkVersion() const override
{
return imtcore::VI_IMTCORE;
}
bool IsCompatibleWithSdk(int sdkVersion) const override
{
// Plugin requires exact SDK version match
return sdkVersion == imtcore::VI_IMTCORE;
}
};

Build Information

Display Build Information:**

void DisplayAboutDialog()
{
QMessageBox aboutBox;
aboutBox.setWindowTitle("About Application");
QString aboutText = QString(
"Application Version: 1.0.0\n"
"ImtCore SDK Version: %1\n"
"Build Date: %2\n"
"Qt Version: %3"
).arg(imtcore::VI_IMTCORE)
.arg(__DATE__)
.arg(QT_VERSION_STR);
aboutBox.setText(aboutText);
aboutBox.exec();
}

Best Practices

Version Management

Compatibility Considerations

Integration with Other Modules

SDK-wide Usage:

References

Related Modules:

External Documentation: