|
|
|
@ -34,7 +34,8 @@ struct OpUpdateRecord {
|
|
|
|
|
kModifyAttr,
|
|
|
|
|
kNewAttr,
|
|
|
|
|
kNewInput,
|
|
|
|
|
kNewOutput
|
|
|
|
|
kNewOutput,
|
|
|
|
|
kBugfixWithBehaviorChanged,
|
|
|
|
|
};
|
|
|
|
|
Type type_;
|
|
|
|
|
std::string remark_;
|
|
|
|
@ -82,6 +83,11 @@ struct NewOutput : OpUpdateRecord {
|
|
|
|
|
std::string name_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct BugfixWithBehaviorChanged : OpUpdateRecord {
|
|
|
|
|
explicit BugfixWithBehaviorChanged(const std::string& remark)
|
|
|
|
|
: OpUpdateRecord({Type::kBugfixWithBehaviorChanged, remark}) {}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class OpVersionDesc {
|
|
|
|
|
public:
|
|
|
|
|
OpVersionDesc& ModifyAttr(const std::string& name, const std::string& remark,
|
|
|
|
@ -110,6 +116,12 @@ class OpVersionDesc {
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
OpVersionDesc& BugfixWithBehaviorChanged(const std::string& remark) {
|
|
|
|
|
infos_.push_back(std::shared_ptr<OpUpdateRecord>(
|
|
|
|
|
new compatible::BugfixWithBehaviorChanged(remark)));
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::vector<std::shared_ptr<OpUpdateRecord>> infos_;
|
|
|
|
|
};
|
|
|
|
|