33 #ifndef _IDENTT_STORE_STOREBASE_HPP_ 34 #define _IDENTT_STORE_STOREBASE_HPP_ 36 #define IDENTT_MEGABYTE 1024 * 1024LL 37 #define IDENTT_STRN_BLANK "" 38 #define IDENTT_MIN_TIME 1450000000 39 #define IDENTT_MAX_TIME 2000000000 42 #define IDENTT_KEYID_LEN 2 44 #ifdef IDENTT_USE_BASE80_KEYS 45 #define IDENTT_NODE_LEN 10 47 #define IDENTT_NODE_LEN 16 50 #define IDENTT_STRING_MAXLEN 1024 51 #define IDENTT_LEN_NODE_KEY IDENTT_KEYID_LEN + IDENTT_NODE_LEN 54 #include "../proto/Store.pb.h" 85 std::string
EncodePrimaryKey (KeyTypeE keytype, ::google::protobuf::uint64
id);
128 template<
typename T,
typename U>
149 template<
typename T,
typename U,
typename V>
Definition: StoreBase.hpp:58
std::string EncodePrimaryKey(KeyTypeE keytype, ::google::protobuf::uint64 id)
EncodePrimaryKey : make primary key with id only.
Definition: StoreBase.cc:124
std::string EncodeSecondaryKey(KeyTypeE keytype, T key)
EncodeSecondaryKey : make secondary key with one variable only.
Definition: CryptoBase.hpp:49
std::string EncodeKeyType(KeyTypeE keytype)
EncodeKeyType : make prefix key with keytype.
Definition: StoreBase.cc:113
std::pair< KeyTypeE, uint64_t > DecodePrimaryKey(std::string &key)
DecodePrimaryKey : get keytype and id from primary key.
Definition: StoreBase.cc:135