Apollo 10.0
自动驾驶开放平台
plugin2.cc
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2019 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#include <iostream>
20
21class Apple : public Base {
22 public:
23 virtual void DoSomething() { std::cout << "I am Apple" << std::endl; }
24};
25
26class Pear : public Base {
27 public:
28 virtual void DoSomething() { std::cout << "I am Pear!!!" << std::endl; }
29};
30
31class Banana : public Base {
32 public:
33 virtual void DoSomething() { std::cout << "I am Banana" << std::endl; }
34};
35
36class Peach : public Base {
37 public:
38 virtual void DoSomething() { std::cout << "I am Peach!!!" << std::endl; }
39};
40
virtual void DoSomething()
Definition plugin2.cc:23
virtual void DoSomething()
Definition plugin2.cc:33
Definition base.h:20
virtual void DoSomething()
Definition plugin2.cc:38
virtual void DoSomething()
Definition plugin2.cc:28
#define CLASS_LOADER_REGISTER_CLASS(Derived, Base)