Subversion Repositories HomeAutomation

Rev

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

Rev 1665 Rev 1788
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_ = id;
40
    this->id_ = boost::algorithm::to_lower_copy((std::string)id);
41
    this->information_.has_application_ = false;
41
    this->information_.has_application_ = false;
42
    this->information_.bios_version_ = 0;
42
    this->information_.bios_version_ = 0;
43
    this->information_.device_type_ = "N/A";
43
    this->information_.device_type_ = "N/A";
44
    this->information_.last_active_ = 0;
44
    this->information_.last_active_ = 0;
45
    this->information_.valid_ = false;
45
    this->information_.valid_ = false;