You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pa-calculator/cdac.h

27 lines
548 B
C++

#ifndef CDAC_H
#define CDAC_H
#include <iostream>
#include <QDataStream>
class cdac
{
public:
cdac();
cdac(std::string name,double outputLevel);
const std::string &name() const;
void setName(const std::string &newName);
double outputLevel() const;
void setOutputLevel(double newOutputLevel);
friend QDataStream& operator <<(QDataStream& out,cdac& speaker);
friend QDataStream& operator >>(QDataStream& in,cdac& speaker);
private:
std::string m_name;
double m_outputLevel; // in dBu
};
#endif // CDAC_H