abstractout.h
Go to the documentation of this file.
#pragma once
#include "Arduino.h"
#include "abstractch.h"
#include "itemCmd.h"
class Item;
class chPersistent {};
class abstractOut : public abstractCh{
public:
abstractOut(Item * _item):abstractCh(){item=_item;};
virtual int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) =0;
virtual int isActive();
virtual itemCmd getDefaultOnVal(){return itemCmd().Percents255(255);};
virtual int getChanType(){return 0;}
virtual int getDefaultStorageType(){return ST_PERCENTS255;}
int Setup() override;
protected:
Item * item;
};
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