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

X10Recv.h

Go to the documentation of this file.
00001 #include "Device.h"
00002 #include "Utility.h"
00003 #include <map>
00004 
00005 #ifndef X10RECV_HEADER
00006 #define X10RECV_HEADER
00007 #include "X10Interface.h"
00008 namespace rwil {
00010   class X10Recv : public Device
00011     {
00012     public:
00014       std::string GetStatus() const { return IntToString( messages ); }
00016       X10Recv(const std::string &name, MessageList& output) : Device(name, output), messages(0) {}
00018       virtual ExecuteReturns::Returns ExecuteMessage(const Message & msg) {}
00020 
00023       virtual bool Tick();
00024 
00025     protected:  
00028       std::string GetRealHouse(char house) const;
00029 
00031       std::string GetRealNumber(char unitnumber) const;
00032 
00034       std::string GetMessageType(char type) const;
00035 
00037       int messages;
00038       
00040       std::map < std::string, std::string> activenums;
00041     };
00042 }
00043 
00044 #endif

Generated on Tue Apr 9 13:53:08 2002 for RWIL - Real World Interface Library by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001