SmartLockerTools/Database/DataStructure.h

25 lines
496 B
C
Raw Permalink Normal View History

2024-05-24 10:23:05 +08:00
#ifndef __DATASTRUCTURE_H__
#define __DATASTRUCTURE_H__
#include <string>
#include <vector>
2024-09-03 23:30:45 +08:00
#include <cstdint>
2024-05-24 10:23:05 +08:00
class PalmFeature {
public:
int64_t id; // 对应本地数据库的id
std::string username;
std::vector<uint8_t> feature;
};
using PalmFeatures = std::vector<PalmFeature>;
bool operator==(const PalmFeature &lhs, const PalmFeature &rhs);
namespace std {
template <>
struct hash<PalmFeature> {};
} // namespace std
#endif // __DATASTRUCTURE_H__