# LightHub: abstractout.h Source File

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(){return 0;};
virtual int getDefaultOnVal(){return 100;};
virtual int getChanType(){return 0;}
protected:
Item * item;
};
abstractOut::Ctrl
virtual int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true)=0
abstractch.h
itemCmd.h
itemCmd
Definition: itemCmd.h:173
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::getDefaultOnVal
virtual int getDefaultOnVal()
Definition: abstractout.h:13
abstractOut::isActive
virtual int isActive()
Definition: abstractout.h:12
Item
Definition: item.h:93
abstractOut::getChanType
virtual int getChanType()
Definition: abstractout.h:14
abstractOut::item
Item * item
Definition: abstractout.h:16