17#ifndef TOOLS_CVT_MONITOR_GENERAL_MESSAGE_BASE_H_
18#define TOOLS_CVT_MONITOR_GENERAL_MESSAGE_BASE_H_
31 const google::protobuf::Message& msg,
35 const google::protobuf::Message& msg,
int* jump_lines,
37 const google::protobuf::Reflection* ref,
38 const google::protobuf::FieldDescriptor* field,
41 static int LineCount(
const google::protobuf::Message& msg,
int screen_width);
44 const google::protobuf::FieldDescriptor* field,
45 const google::protobuf::Reflection* reflection,
46 bool is_folded =
true);
RenderableMessage * Child(int line_no) const override
GeneralMessageBase & operator=(const GeneralMessageBase &)=delete
std::map< const int, GeneralMessageBase * > children_map_
static void PrintField(GeneralMessageBase *baseMsg, const google::protobuf::Message &msg, int *jump_lines, const Screen *s, int *line_no, int indent, const google::protobuf::Reflection *ref, const google::protobuf::FieldDescriptor *field, int index)
static int LineCount(const google::protobuf::Message &msg, int screen_width)
GeneralMessageBase(RenderableMessage *parent=nullptr)
~GeneralMessageBase(void)
static void PrintMessage(GeneralMessageBase *baseMsg, const google::protobuf::Message &msg, int *jump_lines, const Screen *s, int *line_no, int indent)
void InsertRepeatedMessage(int line_no, GeneralMessageBase *item)
static int LineCountOfField(const google::protobuf::Message &msg, int screen_width, const google::protobuf::FieldDescriptor *field, const google::protobuf::Reflection *reflection, bool is_folded=true)
GeneralMessageBase(const GeneralMessageBase &)=delete
RenderableMessage * parent(void) const