| LightHub v4.0.0 Smarthome controller firmware

abstractout.h
Go to the documentation of this file.
1 #pragma once
2 #include "Arduino.h"
3 #include "abstractch.h"
4 #include "itemCmd.h"
5
6 class Item;
7 class chPersistent {};
8 class abstractOut : public abstractCh{
9 public:
10 abstractOut(Item * _item):abstractCh(){item=_item;};
11 virtual int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) =0;
12 virtual int isActive();
13 virtual itemCmd getDefaultOnVal(){return itemCmd().Percents255(255);};
14 virtual int getChanType(){return 0;}
15 virtual int getDefaultStorageType(){return ST_PERCENTS255;}
16 int Setup() override;
17 protected:
18 Item * item;
19 };
abstractOut::Ctrl
virtual int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true)=0
itemCmd::Percents255
itemCmd Percents255(int i)
Definition: itemCmd.cpp:835
abstractch.h
itemCmd.h
itemCmd
Definition: itemCmd.h:153
abstractOut::abstractOut
abstractOut(Item *_item)
Definition: abstractout.h:10
chPersistent
Definition: abstractout.h:7
abstractOut
Definition: abstractout.h:8
abstractCh
Definition: abstractch.h:8
abstractOut::isActive
virtual int isActive()
Definition: abstractout.cpp:5
ST_PERCENTS255
#define ST_PERCENTS255
Definition: itemCmd.h:83
abstractOut::getDefaultStorageType
virtual int getDefaultStorageType()
Definition: abstractout.h:15
Item
Definition: item.h:104
abstractOut::Setup
int Setup() override
Remove?? Now getChanType used instead.
Definition: abstractout.cpp:20
abstractOut::getDefaultOnVal
virtual itemCmd getDefaultOnVal()
Definition: abstractout.h:13
abstractOut::getChanType
virtual int getChanType()
Definition: abstractout.h:14
abstractOut::item
Item * item
Definition: abstractout.h:18