plugins2.cpp
Go to the documentation of this file.
00001 #include "base.h"
00002 #include <iostream>
00003 #include <class_loader/class_loader.h>
00004 
00005 class Robot : public Base
00006 {
00007   public:
00008     virtual void saySomething(){std::cout << "Beep boop" << std::endl;}
00009 };
00010 
00011 class Alien : public Base
00012 {
00013   public:
00014     virtual void saySomething(){std::cout << "Znornoff!!!" << std::endl;}
00015 };
00016 
00017 class Monster : public Base
00018 {
00019   public:
00020     virtual void saySomething(){std::cout << "BEAAAHHHH" << std::endl;}
00021 };
00022 
00023 class Zombie : public Base
00024 {
00025   public:
00026     virtual void saySomething(){std::cout << "Brains!!!" << std::endl;}
00027 };
00028 
00029 
00030 CLASS_LOADER_REGISTER_CLASS(Robot, Base);
00031 CLASS_LOADER_REGISTER_CLASS(Alien, Base);
00032 CLASS_LOADER_REGISTER_CLASS(Monster, Base);
00033 CLASS_LOADER_REGISTER_CLASS(Zombie, Base);
00034 


class_loader
Author(s): Mirza Shah
autogenerated on Fri Aug 28 2015 10:17:12