Manak  2.0.0
html_output_handler.hpp
Go to the documentation of this file.
1 #ifndef MANAK_HTML_OUPUT_HANDLER_HPP_INCLUDED
2 #define MANAK_HTML_OUPUT_HANDLER_HPP_INCLUDED
3 
4 #include <map>
5 #include <string>
6 #include <list>
7 #include <sstream>
8 
9 #include "output_handler.hpp"
11 #include <manak/util/version.hpp>
13 #include <manak/util/pmeasure.hpp>
15 #include <manak/util/timer.hpp>
16 
17 #include <manak/util/manak_env.hpp>
18 
19 namespace manak
20 {
21 
23 {
24  public:
25  HTMLOutputHandler(const std::string& name)
26  : OutputHandler(name), total_nodes(0)
27  {}
28 
30 
31  MANAK_INLINE void Initialize(bool compare,
32  const std::string& c_time);
33 
34  MANAK_INLINE void AddCase(const std::string& uname,
35  const std::string& name,
36  const std::map<std::string, std::list<utils::ObjectStore>>& results);
37 
38  void OpenSuite(const std::string& name)
39  {
40  (void)name;
41  }
42 
43  void CloseSuite() {}
44 
45  MANAK_INLINE void Finalize();
46 
47  private:
48  MANAK_INLINE std::string GetPMRep(const utils::ObjectStore& entry);
49 
50  std::stringstream stream1;
51  std::stringstream stream2;
52 
53  size_t total_nodes;
54  bool isComp;
55  std::string compare_time;
56 };
57 
58 }
59 
60 #ifndef MANAK_USE_DYN_LINK
61 #include "html_output_handler.cpp"
62 #endif // MANAK_USE_DYN_LINK
63 
64 #endif // MANAK_HTML_OUPUT_HANDLER_HPP_INCLUDED
MANAK_INLINE void Initialize(bool compare, const std::string &c_time)
MANAK_INLINE std::string GetPMRep(const utils::ObjectStore &entry)
#define MANAK_INLINE
Check if user has opt for dynamic linking.
Definition: macro_utils.hpp:25
void OpenSuite(const std::string &name)
MANAK_INLINE void Finalize()
HTMLOutputHandler(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)