test_plugins.h
Go to the documentation of this file.
00001 #ifndef PLUGINLIB_TEST_PLUGINS_H_
00002 #define PLUGINLIB_TEST_PLUGINS_H_
00003 #include "test_base.h"
00004 #include <cmath>
00005 
00006 namespace test_plugins
00007 {
00008 class Bar : public test_base::Fubar
00009 {
00010 public:
00011   Bar(){}
00012 
00013   void initialize(double foo)
00014   {
00015     foo_ = foo;
00016   }
00017 
00018   double result()
00019   {
00020     return 0.5 * foo_ * getBar();
00021   }
00022 
00023   double getBar()
00024   {
00025     return sqrt((foo_ * foo_) - ((foo_ / 2) * (foo_ / 2)));
00026   }
00027 
00028 private:
00029   double foo_;
00030 };
00031 
00032 class Foo : public test_base::Fubar
00033 {
00034 public:
00035   Foo(){}
00036 
00037   void initialize(double foo)
00038   {
00039     foo_ = foo;
00040   }
00041 
00042   double result()
00043   {
00044     return foo_ * foo_;
00045   }
00046 
00047 private:
00048   double foo_;
00049 
00050 };
00051 };
00052 #endif


pluginlib
Author(s): Eitan Marder-Eppstein, Tully Foote, Dirk Thomas, Mirza Shah
autogenerated on Mon Oct 6 2014 03:26:36