Rivendellaudio/rdhpi/rdhpiinformation.cpp
Fred Gleason 4e48c93cb0 2014-10-24 Fred Gleason <fredg@paravelsystems.com>
* Added 'REPORTS.POST_EXPORT_CMD' and 'REPORTS.WIN_POST_EXPORT_CMD'
	fields to the database.
	* Incremented the database version to 242.
	* Added 'RDReport::postExportCommand()' and
	'RDReport::setPostExportCommand()' methods in 'lib/rdreport.cpp' and
	'lib/rdreport.h'.
	* Added 'Linux Post Export Cmd' and 'Windows Post Export Cmd' controls
	to the 'Edit Report' dialog in 'rdadmin/edit_report.cpp' and
	'rdadmin/edit_report.h'.
	* Implemented post export commands in 'lib/rdreport.cpp'.
2014-10-24 15:35:20 -04:00

133 lines
2.3 KiB
C++

// rdhpiinformation.cpp
//
// A Container Class for AudioScience HPI Adapter Info
//
// (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: rdhpiinformation.cpp,v 1.4 2011/05/18 15:25:33 cvs Exp $
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// 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, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#include <stdio.h>
#include <rdhpiinformation.h>
RDHPIInformation::RDHPIInformation()
{
clear();
}
unsigned RDHPIInformation::serialNumber() const
{
return serial_number;
}
void RDHPIInformation::setSerialNumber(unsigned num)
{
serial_number=num;
}
unsigned RDHPIInformation::hpiMajorVersion() const
{
return (hpi_version>>16)&0xffff;
}
unsigned RDHPIInformation::hpiMinorVersion() const
{
return (hpi_version>>8)&0xff;
}
unsigned RDHPIInformation::hpiPointVersion() const
{
return hpi_version&0xff;
}
uint32_t RDHPIInformation::hpiVersion() const
{
return hpi_version;
}
void RDHPIInformation::setHpiVersion(uint32_t ver)
{
hpi_version=ver;
}
unsigned RDHPIInformation::dspMajorVersion() const
{
return dsp_major_version;
}
void RDHPIInformation::setDspMajorVersion(unsigned ver)
{
dsp_major_version=ver;
}
unsigned RDHPIInformation::dspMinorVersion() const
{
return dsp_minor_version;
}
void RDHPIInformation::setDspMinorVersion(unsigned ver)
{
dsp_minor_version=ver;
}
char RDHPIInformation::pcbVersion() const
{
return pcb_version;
}
void RDHPIInformation::setPcbVersion(char ver)
{
pcb_version=ver;
}
unsigned RDHPIInformation::assemblyVersion() const
{
return assembly_version;
}
void RDHPIInformation::setAssemblyVersion(unsigned ver)
{
assembly_version=ver;
}
void RDHPIInformation::clear()
{
serial_number=0;
hpi_version=0;
dsp_major_version=0;
dsp_minor_version=0;
pcb_version='0';
assembly_version=0;
}