basics/alphabeta/DataFilter.hpp

00001 #ifndef __TUTORIAL_ALPHABETA_DATAFILTER_HPP
00002 #define __TUTORIAL_ALPHABETA_DATAFILTER_HPP
00003 
00004 
00005 #include "Alpha.hpp"
00006 #include "Beta.hpp"
00007 
00008 #include <ocean/plankton/VObject.hpp>
00009 
00010 #include "api.h"
00011 
00012 
00025 namespace AlphaBeta
00026 {
00027 
00028 using namespace Wizt;
00029 using namespace MemCore;
00030 
00031 
00032 /*
00033   A VObject which takes an Alpha and converts it into a Beta.
00034  */
00035 class   MYAPI   DataFilter : public VObject
00036 {
00037         TypedSlot<Alpha>                AlphaInput;
00038         VOutput<Beta>                   BetaParameter;
00039 
00040 public:
00041         DataFilter(const string&name, int p, const RefPtr<VCreationPreferences>&VP)
00042         : VObject(name, p, VP)
00043         , AlphaInput(this, "alphainput", Alpha() )
00044         , BetaParameter( self(), "beta", Beta() )
00045         {}
00046 
00047         ~DataFilter();
00048 
00049         override bool update(VRequest&R, double precision)
00050         {
00051                 puts("DATAFILTER: update()");
00052 
00053                 return true;
00054         }
00055 };
00056 
00057 } // namespace AlphaBeta
00058 
00059 #endif
00060 
00061 

Generated on Thu Apr 2 18:58:49 2009 for VISHTutorial by  doxygen 1.4.7