Lines Matching defs:MetaBase
42 struct MetaBase;
47 using CloudDiskMetaFileCallBack = std::function<void(MetaBase &)>;
51 int32_t DoLookupAndRemove(MetaBase &metaBase);
52 int32_t DoCreate(const MetaBase &base);
54 int32_t DoRemove(const MetaBase &base);
55 int32_t DoUpdate(const MetaBase &base);
56 int32_t DoRename(const MetaBase &oldBase, const std::string &newName);
57 int32_t DoRename(MetaBase &metaBase, const std::string &newName, std::shared_ptr<MetaFile> newMetaFile);
58 int32_t DoLookup(MetaBase &base);
59 int32_t LoadChildren(std::vector<MetaBase> &bases);
80 using CloudDiskMetaFileCallBack = std::function<void(MetaBase &)>;
85 int32_t DoLookupAndRemove(MetaBase &metaBase);
86 int32_t DoCreate(const MetaBase &base);
88 int32_t DoRemove(const MetaBase &base);
89 int32_t DoUpdate(const MetaBase &base);
90 int32_t DoRename(MetaBase &metaBase, const std::string &newName,
92 int32_t DoLookup(MetaBase &base);
93 int32_t LoadChildren(std::vector<MetaBase> &bases);
161 struct MetaBase {
162 MetaBase(const std::string &name) : name(name) {}
163 MetaBase(const std::string &name, const std::string &cloudId) : name(name), cloudId(cloudId) {}
164 MetaBase() = default;
165 inline bool operator!=(const MetaBase &other) const
169 inline bool operator==(const MetaBase &other) const