Subversion Repositories HomeAutomation

Rev

Rev 1788 | Rev 1911 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1788 Rev 1876
Line 35... Line 35...
35
std::map<Node::Event, std::string> Node::event_names_;
35
std::map<Node::Event, std::string> Node::event_names_;
36
   
36
   
37
Node::Node(Node::Id id) : LOG("control::Node")
37
Node::Node(Node::Id id) : LOG("control::Node")
38
{
38
{
39
    this->state_ = STATE_NORM_OFFLINE;
39
    this->state_ = STATE_NORM_OFFLINE;
40
    this->id_ = boost::algorithm::to_lower_copy((std::string)id);
40
    //this->id_ = boost::algorithm::to_lower_copy((std::string)id);
-
 
41
    //this->id_ = boost::algorithm::to_upper_copy((std::string)id);
-
 
42
    this->id_ = (std::string)id;
41
    this->information_.has_application_ = false;
43
    this->information_.has_application_ = false;
42
    this->information_.bios_version_ = 0;
44
    this->information_.bios_version_ = 0;
43
    this->information_.device_type_ = "N/A";
45
    this->information_.device_type_ = "N/A";
44
    this->information_.last_active_ = 0;
46
    this->information_.last_active_ = 0;
45
    this->information_.valid_ = false;
47
    this->information_.valid_ = false;