Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/CryptoTools/DeviceID.h
#pragma once | |||||
#include "lib.rs.h" | #include "lib.rs.h" | ||||
#include <string> | #include <string> | ||||
#include <unordered_map> | #include <unordered_map> | ||||
namespace comm { | namespace comm { | ||||
class DeviceIDGenerator { | class DeviceIDGenerator { | ||||
static const std::unordered_map<std::string, DeviceType> DEVICE_TYPE_MAP; | static const std::unordered_map<std::string, DeviceType> DEVICE_TYPE_MAP; | ||||
public: | public: | ||||
static std::string generateDeviceID(std::string deviceType); | static std::string generateDeviceID(std::string deviceType); | ||||
}; | }; | ||||
} // namespace comm | } // namespace comm |