Subversion Repositories HomeAutomation

Rev

Rev 1311 | Rev 1326 | 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 "log/Logger.h"
  15.  
  16. namespace atom {
  17.  
  18. using namespace std;
  19.  
  20. class Protocol
  21. {
  22. public:
  23.     typedef boost::shared_ptr<Protocol> pointer;
  24.  
  25.     virtual ~Protocol();
  26.  
  27.     static pointer getInstance();
  28.  
  29.     void load(string filename);
  30.  
  31.     xml::Node & getRootNode();
  32.  
  33. private:
  34.     Protocol();
  35.  
  36.     static pointer Instance;
  37.  
  38.     log::Logger LOG;
  39.  
  40.     xml::Node myXmlNode;
  41. };
  42.  
  43. }
  44.  
  45. #endif /* PROTOCOL_H_ */
  46.