PcapPlusPlus
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 }
bool printRow(std::string values, char delimiter)
virtual ~TablePrinter()
Definition: TablePrinter.h:14
TablePrinter(std::vector< std::string > columnNames, std::vector< int > columnWidths)
The main namespace for the PcapPlusPlus lib.