basics/alphabeta/DataSource.hpp

00001 #ifndef __TUTORIAL_ALPHABETA_DATASOURCE_HPP
00002 #define __TUTORIAL_ALPHABETA_DATASOURCE_HPP
00003 
00004 
00005 #include "Alpha.hpp"
00006 #include <ocean/plankton/VObject.hpp>
00007 
00008 
00009 #include "api.h"
00010 
00011 
00023 namespace AlphaBeta
00024 {
00025 using namespace Wizt;
00026 using namespace MemCore;
00027 
00028 /*
00029   A VObject which provides alpha's
00030  */
00031 class   MYAPI   DataSource : public Wizt::VObject
00032 {
00033 public:
00034         TypedSlot<int>  SomeInput;
00035         VOutput<Alpha>  AlphaParameter;
00036 
00037         DataSource(const string&name, int p, const RefPtr<VCreationPreferences>&VP)
00038         : VObject(name, p, VP)
00039         , SomeInput( this, "input", 42 )
00040         , AlphaParameter( self(), "alpha", Alpha() ) 
00041         {}
00042 
00043         ~DataSource();
00044 
00045         override bool update(VRequest&R, double precision)
00046         {
00047                 puts("DATASOURCE: update");
00048 
00049                 return true;
00050         }
00051 };
00052 
00053 } // namespace AlphaBeta
00054 
00055 #endif
00056 

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