#ifndef ROOT_TJAlienResultRewriter #define ROOT_TJAlienResultRewriter #include "TJAlienResult.h" #include #include #include class TJAlienResultRewriter { private: static const std::map> rules; TMap* ObtainFirstMap(TJAlienResult *result); void SetResultCode(TJAlienResult *result, const char *target); void RemoveResultCode(TMap *m); public: void Rewrite(const std::string& command, TJAlienResult* inResult); void ApplyRule(const std::pair* rule, TJAlienResult* result); bool IsSuccess(TJAlienResult* result); bool IsFailure(TJAlienResult* result); ClassDef(TJAlienResultRewriter,0); // Insert return codes like in TAlien }; #endif