MineTrust Connector CPP SDK

MTConnectorSDK::ServerRegistration Struct Reference

#include <MTConnectorSDK.h>

Public Attributes

std::string serverUrl
std::string serviceUID
std::chrono::system_clock::time_point registeredAt
std::string displayName
std::unique_ptr< std::chrono::system_clock::time_point > lastCacheBuild
std::string filePath

Detailed Description

Represents a client's registration with a MineTrust server. Persisted at '_packages\{ServiceUID}\_server.registration' inside the user profile. Unlike PackageConfiguration, this type is never synced to the MineTrust server and carries no Include/Exclude/LocalRoot — it is an identity anchor only. The '.registration' extension is deliberately non-'.json' to categorically prevent any '*.json' glob (in first-party or third-party code) from surfacing this file as a package configuration.

Examples
NativeApp.cpp.

Member Data Documentation

◆ displayName

std::string MTConnectorSDK::ServerRegistration::displayName

Gets or sets an optional display name for the server (useful for UI).

◆ filePath

std::string MTConnectorSDK::ServerRegistration::filePath

Gets or sets the file path where this registration is stored on disk. Not serialized to JSON.

◆ lastCacheBuild

std::unique_ptr<std::chrono::system_clock::time_point> MTConnectorSDK::ServerRegistration::lastCacheBuild

Gets or sets the timestamp of the last successful tag cache build for this server.

◆ registeredAt

std::chrono::system_clock::time_point MTConnectorSDK::ServerRegistration::registeredAt

Gets or sets the date and time at which this server was registered.

◆ serverUrl

std::string MTConnectorSDK::ServerRegistration::serverUrl

Gets or sets the URL of the MineTrust server this registration refers to.

Examples
NativeApp.cpp.

◆ serviceUID

std::string MTConnectorSDK::ServerRegistration::serviceUID

Gets or sets the service UID that uniquely identifies this server instance.

Examples
NativeApp.cpp.

The documentation for this struct was generated from the following file: