DataSink.hpp

Demonstrates the creation of a vish module, a VObject, that holds an Beta parameter. It is a data sink for data Beta.

See also:
Realted: - DataSink.cpp - DataFilter.hpp - DataSource.hpp - Beta.hpp - AlphaBetaCreators.cpp
00001 #ifndef __TUTORIAL_ALPHABETA_DATASINK_HPP
00002 #define __TUTORIAL_ALPHABETA_DATASINK_HPP
00003 
00004 
00005 #include "Beta.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 requires beta's
00030  */
00031 class   MYAPI DataSink : public VObject
00032 {
00033         TypedSlot<Beta> BetaSource;
00034 
00035 public:
00036         DataSink(const string&name, int p, const RefPtr<VCreationPreferences>&VP)
00037         : VObject(name, p, VP)
00038         , BetaSource(this, "betaInput", Beta() )
00039         {
00040         }
00041 
00042         ~DataSink();
00043 
00044         override bool update(VRequest&R, double precision)
00045         {
00046                 puts("DATASINK: update()");
00047                 return true;
00048         }
00049 };
00050 
00051 } // namespace AlphaBeta
00052 
00053 #endif
00054 

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