/*
* Copyright (C) 2005-2007 by Pieter Palmers
*
* This file is part of FFADO
* FFADO = Free Firewire (pro-)audio drivers for linux
*
* FFADO is based upon FreeBoB
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
*/
#ifndef CONTROL_BASICELEMENTS_H
#define CONTROL_BASICELEMENTS_H
#include "debugmodule/debugmodule.h"
#include
#include
#include "Element.h"
namespace Control {
/*!
@brief Base class for contignous control elements
*/
class Continuous
: public Element
{
public:
Continuous();
Continuous(std::string n);
virtual ~Continuous() {};
virtual bool setValue(double v);
virtual double getValue();
virtual void show();
private:
double m_Value;
};
/*!
@brief Base class for discrete control elements
*/
class Discrete
: public Element
{
public:
Discrete();
Discrete(std::string n);
virtual ~Discrete() {};
virtual bool setValue(int v);
virtual int getValue();
virtual void show();
private:
int m_Value;
};
}; // namespace Control
#endif // CONTROL_BASICELEMENTS_H