10#include "PackageTable.h"
13#include "HtmlObject.h"
20#include <initializer_list>
24#include <RtypesCore.h>
30 PackageTable::PackageTable(std::initializer_list<TString> list) {
31 auto vec = Std::GetVector(list);
32 fArray.push_back(vec);
35 void PackageTable::AddRow(std::initializer_list<TString> list) {
36 auto vec = Std::GetVector(list);
37 if (fArray.size() > 0) {
38 if (fArray[0].size() != vec.size()) {
39 std::cout <<
"Cannot add row" << __FILE__ <<
" " << __LINE__ << std::endl;
43 fArray.push_back(vec);
49 path = Form(
"%s/ptable_%i", path.Data(), no);
51 HtmlFile F(Form(
"%s/ptable.html", path.Data()), kFALSE);
55 for (
unsigned int i = 0; i < fArray.size(); i++) {
58 TString style = HtmlTableRowClass::LightBlue();
59 if (i == 0) { style = HtmlTableRowClass::DarkBlue(); }
60 for (
unsigned int j = 0; j < vec.size(); j++) {
63 cell.SetStringContent(rec);
77 TIter iterator(collection);
79 if (pack->fArray.size() != this->fArray.size()) {
83 for (
unsigned int i = 0; i < fArray.size(); i++) {
84 if (fArray[i].size() != pack->fArray[i].size()) {
88 for (
unsigned int j = 0; j < fArray[i].size(); j++) {
89 auto str = fArray[i][j];
90 auto str2 = pack->fArray[i][j];
91 if (!str.EqualTo(str2)) {
Cout::PrintInfo(Form(
"Different content of PackageTable [%i,%i]!", i, j), EInfo::kError); }
static void PrintInfo(TString text, Hal::EInfo status)
static TString GetUrl(TString adress, TString text)
void SetClass(TString className)
virtual void AddContent(const HtmlObject &obj)
virtual void AddContent(const HtmlObject &obj)
virtual TString HTMLExtract(Int_t no, TString path) const
virtual TString GetExtractType() const
Long64_t Merge(TCollection *collection)