16 #ifndef QC_CHECKER_POLICYMANAGER_H 17 #define QC_CHECKER_POLICYMANAGER_H 28 using UpdatePolicyFunctionType = std::function<bool()>;
29 typedef uint32_t RevisionType;
35 std::string actorName;
36 UpdatePolicyFunctionType isReady;
37 std::vector<std::string> inputObjects;
40 bool policyHelperFlag;
41 RevisionType revision = 0;
43 friend std::ostream& operator<<(std::ostream& out,
const UpdatePolicy& updatePolicy);
94 void updateGlobalRevision();
102 void updateActorRevision(
const std::string& actorName, RevisionType revision);
103 void updateActorRevision(std::string actorName);
111 void updateObjectRevision(std::string objectName, RevisionType revision);
112 void updateObjectRevision(std::string objectName);
121 void addPolicy(std::string actorName, std::string policyType, std::vector<std::string> objectNames,
bool allObjects,
bool policyHelper);
127 bool isReady(
const std::string& actorName);
131 RevisionType mGlobalRevision = 1;
132 std::map<std::string , RevisionType> mObjectsRevision;
137 #endif // QC_CHECKER_POLICYMANAGER_H Definition: Aggregator.h:32
Definition: UpdatePolicyManager.h:86
Definition: UpdatePolicyManager.h:34