File: JT6MBurstData.h

package info (click to toggle)
linwsjt 0.4.7-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,356 kB
  • ctags: 1,896
  • sloc: cpp: 13,475; makefile: 417
file content (55 lines) | stat: -rw-r--r-- 1,542 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 *   Copyright (C) 2003 by Jonathan Naylor G4KLX
 *
 *   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 2 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, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef JT6MBurstData_H
#define	JT6MBurstData_H

#include <wx/wx.h>

#include "common/Average.h"

class CJT6MBurstData {

    public:
	CJT6MBurstData();
	virtual ~CJT6MBurstData();

	virtual void clear();
	virtual void setStartBurst();	
	virtual void setRatio(double ratio);
	virtual void setStartTime(int startTime);
	virtual void setData(double* v, double* c);

	virtual int  processBurst(bool singleTone);

	virtual bool     getInBurst() const;
	virtual int      getStartTime() const;
	virtual int      getLength() const;
	virtual int      getStrength(double noise) const;
	virtual wxString getMessage() const;

    private:
	wxString m_data;
	CAverage m_strength;
	int      m_startTime;
	bool     m_inBurst;
	double   m_ratio;
	wxString m_message;
};

#endif