PcapPlusPlus  Next
TablePrinter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
6 
11 namespace pcpp
12 {
17  {
18  public:
24  TablePrinter(std::vector<std::string> columnNames, std::vector<int> columnWidths);
25 
29  virtual ~TablePrinter();
30 
40  bool printRow(const std::string& values, char delimiter);
41 
48  bool printRow(std::vector<std::string> values);
49 
54 
59  void closeTable();
60 
61  private:
62  std::vector<std::string> m_ColumnNames;
63  std::vector<int> m_ColumnWidths;
64  bool m_FirstRow;
65  bool m_TableClosed;
66 
70  void printHeadline();
71  };
72 
73 } // namespace pcpp
Definition: TablePrinter.h:17
virtual ~TablePrinter()
TablePrinter(std::vector< std::string > columnNames, std::vector< int > columnWidths)
bool printRow(const std::string &values, char delimiter)
bool printRow(std::vector< std::string > values)
The main namespace for the PcapPlusPlus lib.