File: scc.h

package info (click to toggle)
entropybroker 2.9-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,700 kB
  • sloc: cpp: 14,387; sh: 934; makefile: 188; java: 148; perl: 12
file content (23 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define SCC_BUFFER_SIZE 4096

class scc
{
	int bytes_in, index;
	unsigned char buffer[SCC_BUFFER_SIZE];
	double threshold;

	char *user;

	double get_cur_scc();

public:
	scc();
	~scc();

	void set_user(const char *puser);
	void set_threshold(double t);

	void add(unsigned char byte);
	bool is_ok();
	std::string stats();
};