Subversion Repositories HomeAutomation

Rev

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

  1. /*
  2.  * Protocol.h
  3.  *
  4.  *  Created on: Jul 23, 2009
  5.  *      Author: Mattias Runge
  6.  */
  7.  
  8. #ifndef PROTOCOL_H_
  9. #define PROTOCOL_H_
  10.  
  11. #include <string>
  12. #include <boost/make_shared.hpp>
  13. #include "xml/Node.h"
  14. #include "utils/Logger.h"
  15.  
  16. namespace atom {
  17.  
  18. using namespace std;
  19. using namespace utils;
  20.  
  21. class Protocol
  22. {
  23. public:
  24.     typedef boost::shared_ptr<Protocol> pointer;
  25.  
  26.     virtual ~Protocol();
  27.  
  28.     static pointer getInstance();
  29.  
  30.     void load(string filename);
  31.  
  32.     xml::Node & getRootNode();
  33.  
  34. private:
  35.     Protocol();
  36.  
  37.     static pointer Instance;
  38.  
  39.     Logger LOG;
  40.  
  41.     xml::Node myXmlNode;
  42. };
  43.  
  44. }
  45.  
  46. #endif /* PROTOCOL_H_ */
  47.