Commit f9cec052 authored by Frederick Zhang's avatar Frederick Zhang

to_array virtual in bitem

parent bf56ad3a
......@@ -30,8 +30,9 @@ class bitem {
virtual std::string encode() const = 0;
static zval * load(const std::string &file_path);
void save(const std::string &file_path) const;
virtual zval * to_array(const bool include_meta) const = 0;
// mode 0: search in keys; mode 1: search in values
virtual zval * search(const std::string &needle, const long &mode, const std::string path) const;
virtual zval * search(const std::string &needle, const long &mode, const std::string path) const = 0;
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment