// TFrames.h -Testing features of ErrorLogger // // Similar to TestFramework.h with minor alterations // This framework uses TestModule and TestModuleA as well // // #ifndef T_FRAMES_H #define T_FRAMES_H #ifndef ZMENVIRONMENT_H #include "ZMutility/ZMenvironment.h" #endif #include "ErrorLogger/ELcontextSupplier.h" #include "ErrorLogger/ErrorLog.h" class ELadminstrator; #include "TestModule.h" #include // TFrames class TFrames { public: TFrames(); ~TFrames(); void setup(); void eventLoop(); // RunEventContext class RunEventContext : public ELcontextSupplier { private: TFrames &f; public: RunEventContext (TFrames &ff); ZM_COVARIANT_TYPE(ELcontextSupplier *, RunEventContext *) clone() const; std::string context() const; std::string summaryContext() const; std::string fullContext() const; void editErrorObj(ErrorObj &) const; ELstring traceRoutine() const; }; // RunEventContext end private: TestModule *step; ELdestControl logfile, //logs any severity to file "everything.log" part1log, //logs ELsuccess and higher to "successes.log" output, //prints any severity to cout stats; //prints statistics of ELsuccess and higher to cout RunEventContext reContext; ELadministrator *logger; ErrorLog errlog; }; #endif