PcapPlusPlus  22.11
TablePrinter.h
Go to the documentation of this file.
1 #include <vector>
2 
4 
9 namespace pcpp
10 {
15  {
16  public:
22  TablePrinter(std::vector<std::string> columnNames, std::vector<int> columnWidths);
23 
27  virtual ~TablePrinter();
28 
38  bool printRow(std::string values, char delimiter);
39 
46  bool printRow(std::vector<std::string> values);
47 
51  void printSeparator();
52 
57  void closeTable();
58 
59  private:
60  std::vector<std::string> m_ColumnNames;
61  std::vector<int> m_ColumnWidths;
62  bool m_FirstRow;
63  bool m_TableClosed;
64 
68  void printHeadline();
69  };
70 
71 }
The main namespace for the PcapPlusPlus lib.
bool printRow(std::string values, char delimiter)
Definition: TablePrinter.h:14
TablePrinter(std::vector< std::string > columnNames, std::vector< int > columnWidths)
virtual ~TablePrinter()