#ifndef HT_TEST_CLIENT_TESTFILELOADER_HPP #define HT_TEST_CLIENT_TESTFILELOADER_HPP #include #include using HawkTracer::client::CallGraph; class TestFileLoader { public: bool init(std::string file_name); std::vector get_events(); std::vector, int>> get_tree(); private: std::string _next_valid_line(); void _read_tree_nodes(); void _read_tree_edges(); void _read_events_data(); void _parse_file(); std::ifstream _file; std::unordered_map, unsigned int>> _nodes; std::vector _events; std::vector, int>> _tree; }; #endif //HT_TEST_CLIENT_TESTFILELOADER_HPP