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,
36 const Screen* s,
int* line_no,
int indent,
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);
63 children_map_.clear();
72 #endif // TOOLS_CVT_MONITOR_GENERAL_MESSAGE_BASE_H_ GeneralMessageBase(RenderableMessage *parent=nullptr)
Definition: general_message_base.h:54
std::map< const int, GeneralMessageBase * > children_map_
Definition: general_message_base.h:69
static int LineCount(const google::protobuf::Message &msg, int screen_width)
static void PrintMessage(GeneralMessageBase *baseMsg, const google::protobuf::Message &msg, int *jump_lines, const Screen *s, int *line_no, int indent)
Definition: renderable_message.h:24
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)
void clear(void)
Definition: general_message_base.h:58
GeneralMessageBase & operator=(const GeneralMessageBase &)=delete
RenderableMessage * Child(int line_no) const override
Definition: general_message_base.h:28
void InsertRepeatedMessage(int line_no, GeneralMessageBase *item)
Definition: general_message_base.h:48
int * line_no(void)
Definition: renderable_message.h:55
RenderableMessage * parent(void) const
Definition: renderable_message.h:44
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)
~GeneralMessageBase(void)
Definition: general_message_base.h:56