Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

dataEventServer.h

Go to the documentation of this file.
00001 //-----------------------------------------
00002 //
00003 //    Data Server
00004 //
00005 //-----------------------------------------
00006 
00007 #ifndef dataEventServer_H
00008 #define dataEventServer_H 1
00009 
00010 #include "Event/trsDataVI.h"
00011 #include "Event/serverVI.h"
00012 #include "Event/serviceI.h"
00013 
00014 //------------------------------------------
00016 /*! 
00017 <ul>
00018         <li> The user should construct and add his/her event data classes in the userDataEvent class.
00019         <li> The user can add transient event data using the method \c addData().
00020         <li> The manager has a protected server with the event transient data.
00021         The data is served by dataManager via the method getData().
00022         </ul>
00023 */
00024 //-----------------------------------------
00025 // JA Hernando, Santa Cuz, CA 02/15/00
00026 //-----------------------------------------
00027 //#########################################
00028 class dataEventServer : public serviceI
00029 //#########################################
00030 {
00032         friend class dataManager;
00033 
00034 public:
00035 
00037         dataEventServer();
00039         virtual ~dataEventServer(); 
00040 
00042         virtual void addData(std::string name, trsDataVI* data);
00043 
00045         virtual void update(std::string name);
00046 
00048         virtual void writeOutServer() const {m_server->command("writeOut");}
00050         virtual void writeOut(std::string name) const {m_server->get(name)->writeOut();}
00051 
00053         virtual void writeOut() const;
00054 
00055 protected:
00056 
00058         serverVI<trsDataVI>* server() {return m_server;}
00059 
00061         trsDataVI* getTrsData(std::string name) const;
00062 
00063 private:
00064 
00066         serverVI<trsDataVI>* m_server;
00067 };
00068 
00069 #endif

Generated at Fri Aug 18 12:57:37 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000