#include "mon_page.h" using namespace NMonitoring; IMonPage::IMonPage(const TString& path, const TString& title) : Path(path) , Title(title) { Y_ABORT_UNLESS(!Path.StartsWith('/')); Y_ABORT_UNLESS(!Path.EndsWith('/')); } void IMonPage::OutputNavBar(IOutputStream& out) { TVector parents; for (const IMonPage* p = this; p; p = p->Parent) { parents.push_back(p); } std::reverse(parents.begin(), parents.end()); out << "\n"; }