Subversion Repositories HomeAutomation

Rev

Rev 1602 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1602 Rev 1642
Line 24... Line 24...
24
#include <string>
24
#include <string>
25
#include <map>
25
#include <map>
26
 
26
 
27
#include <boost/shared_ptr.hpp>
27
#include <boost/shared_ptr.hpp>
28
 
28
 
29
#include "type/common.h"
29
#include "common/common.h"
30
 
30
 
31
namespace atom {
31
namespace atom {
32
namespace can {
32
namespace can {
33
 
33
 
34
class Message
34
class Message
Line 46... Line 46...
46
    std::string GetCommandName();
46
    std::string GetCommandName();
47
   
47
   
48
    std::string GetVariable(std::string name);
48
    std::string GetVariable(std::string name);
49
    void SetVariable(std::string name, std::string value);
49
    void SetVariable(std::string name, std::string value);
50
   
50
   
51
    type::StringMap& GetVariables();
51
    common::StringMap& GetVariables();
52
    void SetVariables(type::StringMap variables);
52
    void SetVariables(common::StringMap variables);
53
   
53
   
54
private:
54
private:
55
    std::string class_name_;
55
    std::string class_name_;
56
    std::string direction_name_;
56
    std::string direction_name_;
57
    std::string module_name_;
57
    std::string module_name_;
58
    unsigned int id_;
58
    unsigned int id_;
59
    std::string command_name_;
59
    std::string command_name_;
60
    type::StringMap variables_;
60
    common::StringMap variables_;
61
};
61
};
62
       
62
       
63
}; // namespace can
63
}; // namespace can
64
}; // namespace atom
64
}; // namespace atom
65
 
65