Subversion Repositories HomeAutomation

Rev

Rev 1310 | 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 "Variable.h"
  13. #include "../utils/BitBuffer.h"
  14.  
  15. namespace atom {
  16. namespace message {
  17.  
  18. using namespace atom::utils;
  19.  
  20. class Header
  21. {
  22.     typedef std::map<std::string, Variable> variableMap;
  23.  
  24. public:
  25.     Header();
  26.     virtual ~Header();
  27.  
  28.     Variable & getVariable(string name);
  29.  
  30.     void readBits(BitBuffer & buffer);
  31.  
  32. private:
  33.     variableMap myVariables;
  34. };
  35.  
  36. }
  37. }
  38.  
  39. #endif /* HEADER_H_ */
  40.