Manak  2.0.0
txt_output_handler.hpp
Go to the documentation of this file.
1 #ifndef MANAK_TXT_OUPUT_HANDLER_HPP_INCLUDED
2 #define MANAK_TXT_OUPUT_HANDLER_HPP_INCLUDED
3 
4 #include <map>
5 #include <string>
6 #include <list>
7 
8 #include "output_handler.hpp"
9 
11 #include <manak/util/version.hpp>
13 #include <manak/util/pmeasure.hpp>
15 
16 namespace manak
17 {
18 
20 {
21  public:
22  TXTOutputHandler(const std::string& name)
23  : OutputHandler(name)
24  {}
25 
27 
28  MANAK_INLINE void Initialize(bool compare,
29  const std::string& c_time);
30 
31  MANAK_INLINE void AddCase(const std::string& uname,
32  const std::string& name,
33  const std::map<std::string, std::list<utils::ObjectStore>>& results);
34 
35  void OpenSuite(const std::string& name)
36  {
37  (void)name;
38  }
39 
40  void CloseSuite() {}
41 
42  void Finalize() {}
43 
44  private:
45  std::string GetPMRep(const utils::ObjectStore& entry);
46 };
47 
48 }
49 
50 #ifndef MANAK_USE_DYN_LINK
51 #include "txt_output_handler.cpp"
52 #endif // MANAK_USE_DYN_LINK
53 
54 #endif // MANAK_TXT_OUPUT_HANDLER_HPP_INCLUDED
TXTOutputHandler(const std::string &name)
#define MANAK_INLINE
Check if user has opt for dynamic linking.
Definition: macro_utils.hpp:25
std::string GetPMRep(const utils::ObjectStore &entry)
MANAK_INLINE void Initialize(bool compare, const std::string &c_time)
void OpenSuite(const std::string &name)
MANAK_INLINE void AddCase(const std::string &uname, const std::string &name, const std::map< std::string, std::list< utils::ObjectStore >> &results)