Apollo  6.0
Open source self driving car software
general_message.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #ifndef TOOLS_CVT_MONITOR_GENERAL_MESSAGE_H_
18 #define TOOLS_CVT_MONITOR_GENERAL_MESSAGE_H_
19 
20 #include "cyber/cyber.h"
23 
24 class Screen;
25 
27  public:
29  const google::protobuf::Message* msg,
30  const google::protobuf::Reflection* reflection,
31  const google::protobuf::FieldDescriptor* field);
32 
34  field_ = nullptr;
35  message_ptr_ = nullptr;
36  reflection_ptr_ = nullptr;
37  }
38 
39  int Render(const Screen* s, int key) override;
40 
41  private:
42  GeneralMessage(const GeneralMessage&) = delete;
43  GeneralMessage& operator=(const GeneralMessage&) = delete;
44 
45  int item_index_;
46  bool is_folded_;
47  const google::protobuf::FieldDescriptor* field_;
48  const google::protobuf::Message* message_ptr_;
49  const google::protobuf::Reflection* reflection_ptr_;
50 };
51 
52 #endif // TOOLS_CVT_MONITOR_GENERAL_MESSAGE_H_
Definition: screen.h:30
~GeneralMessage()
Definition: general_message.h:33
Definition: general_message_base.h:28
Definition: general_message.h:26
GeneralMessage(GeneralMessageBase *parent, const google::protobuf::Message *msg, const google::protobuf::Reflection *reflection, const google::protobuf::FieldDescriptor *field)
RenderableMessage * parent(void) const
Definition: renderable_message.h:44
int Render(const Screen *s, int key) override