Subversion Repositories HomeAutomation

Rev

Rev 1311 | Rev 1323 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * Header.h
  3.  *
  4.  *  Created on: Jul 23, 2009
  5.  *      Author: Mattias Runge
  6.  */
  7.  
  8. #ifndef HEADER_H_
  9. #define HEADER_H_
  10.  
  11. #include <map>
  12. #include "message/Variable.h"
  13. #include "utils/BitBuffer.h"
  14. #include "protocol/Protocol.h"
  15. #include "utils/convert.h"
  16.  
  17. namespace atom {
  18. namespace message {
  19.  
  20. using namespace std;
  21.  
  22. class Header
  23. {
  24.     typedef std::map<std::string, Variable> variableMap;
  25.  
  26. public:
  27.     Header();
  28.     virtual ~Header();
  29.  
  30.     Variable & getVariable(string name);
  31.  
  32.     void readBits(BitBuffer & buffer);
  33.  
  34. private:
  35.     variableMap myVariables;
  36. };
  37.  
  38. }
  39. }
  40.  
  41. #endif /* HEADER_H_ */
  42.