Subversion Repositories HomeAutomation

Rev

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

Rev 1642 Rev 1657
Line 40... Line 40...
40
 
40
 
41
class Node
41
class Node
42
{
42
{
43
public:
43
public:
44
    typedef boost::shared_ptr<Node> Pointer;
44
    typedef boost::shared_ptr<Node> Pointer;
45
    typedef unsigned int Id;
45
    typedef std::string Id;
46
   
46
   
47
    typedef enum
47
    typedef enum
48
    {
48
    {
49
        STATE_INVALID,
49
        STATE_INVALID,
50
        STATE_NO_CHANGE,
50
        STATE_NO_CHANGE,
Line 94... Line 94...
94
    bool CheckTimeout();
94
    bool CheckTimeout();
95
    void ResetTimeout();
95
    void ResetTimeout();
96
   
96
   
97
    void ProgramApplication(Code::Pointer code);
97
    void ProgramApplication(Code::Pointer code);
98
    void ProgramBios(Code::Pointer code);
98
    void ProgramBios(Code::Pointer code);
-
 
99
    void Reset();
99
   
100
   
100
private:
101
private:
101
    typedef std::map<Event, State> Transition;
102
    typedef std::map<Event, State> Transition;
102
    typedef std::map<State, Transition> TransitionList;
103
    typedef std::map<State, Transition> TransitionList;
103
   
104