Apollo 10.0
自动驾驶开放平台
plugin1.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 Circle : public Base {
22 public:
23 virtual void DoSomething() { std::cout << "I am Circle" << std::endl; }
24};
25
26class Rect : public Base {
27 public:
28 virtual void DoSomething() { std::cout << "I am Rect" << std::endl; }
29 ~Rect() {}
30};
31
32class Triangle : public Base {
33 public:
34 virtual void DoSomething() { std::cout << "I am Triangle" << std::endl; }
35};
36
37class Star : public Base {
38 public:
39 virtual void DoSomething() { std::cout << "I am Star" << std::endl; }
40};
41
Definition base.h:20
virtual void DoSomething()
Definition plugin1.cc:23
virtual void DoSomething()
Definition plugin1.cc:28
~Rect()
Definition plugin1.cc:29
virtual void DoSomething()
Definition plugin1.cc:39
virtual void DoSomething()
Definition plugin1.cc:34
#define CLASS_LOADER_REGISTER_CLASS(Derived, Base)