You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
427 B
29 lines
427 B
#ifndef EASYPR_UTIL_KV_H_
|
|
#define EASYPR_UTIL_KV_H_
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
namespace easypr {
|
|
|
|
class Kv {
|
|
public:
|
|
Kv();
|
|
|
|
void load(const std::string &file);
|
|
|
|
std::string get(const std::string &key);
|
|
|
|
void add(const std::string &key, const std::string &value);
|
|
|
|
void remove(const std::string &key);
|
|
|
|
void clear();
|
|
|
|
private:
|
|
std::map<std::string, std::string> data_;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // EASYPR_UTIL_KV_H_
|