Subversion Repositories HomeAutomation

Rev

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

Rev 1319 Rev 1322
Line 25... Line 25...
25
public:
25
public:
26
    Variable();
26
    Variable();
27
    Variable(string name, string datatype, bool required, string unit);
27
    Variable(string name, string datatype, bool required, string unit);
28
    virtual ~Variable();
28
    virtual ~Variable();
29
 
29
 
30
    boost::any getValue();
30
    string getName();
31
    void setValue(boost::any value);
31
    Datatype::pointer getDatatype();
-
 
32
    string getUnit();
-
 
33
    bool isRequired();
32
 
34
 
33
    void readBits(BitBuffer & buffer);
35
    void readBits(BitBuffer & buffer);
-
 
36
    void writeBits(BitBuffer & buffer);
34
 
37
 
35
private:
38
private:
36
    string myName;
39
    string myName;
37
    Datatype::pointer myDatatype;
40
    Datatype::pointer myDatatype;
38
    bool myRequired;
41
    bool myRequired;
39
    string myUnit;
42
    string myUnit;
40
    unsigned int myLength;
-
 
41
};
43
};
42
 
44
 
43
}
45
}
44
}
46
}
45
 
47