Protocol::getStringParameter() and Protocol::getIntParameter() should be virtual so they can be overriden by a protocol
This commit is contained in:
parent
1ea754da3d
commit
d6dcd11973
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ public:
|
||||||
virtual std::string getStringForMethod(int method, unsigned char data, Controller *controller) = 0;
|
virtual std::string getStringForMethod(int method, unsigned char data, Controller *controller) = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::wstring getStringParameter(const std::wstring &name, const std::wstring &defaultValue = L"") const;
|
virtual std::wstring getStringParameter(const std::wstring &name, const std::wstring &defaultValue = L"") const;
|
||||||
int getIntParameter(const std::wstring &name, int min, int max) const;
|
virtual int getIntParameter(const std::wstring &name, int min, int max) const;
|
||||||
|
|
||||||
static bool checkBit(int data, int bit);
|
static bool checkBit(int data, int bit);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue