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