File: CTrafStatsList.h

package info (click to toggle)
trafstats 0.4.20-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 296 kB
  • ctags: 110
  • sloc: cpp: 1,036; sh: 475; perl: 173; makefile: 98
file content (36 lines) | stat: -rw-r--r-- 776 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
#ifndef _CTRAFSTATSLIST_H_
  #define _CTRAFSTATSLIST_H_

#include "CTrafStatsEntry.h"

#include <list.h>
#ifndef _SYS_SYSLOG_H
#include <syslog.h>
#endif

class PgDatabase;

class CTrafStatsList: public list<CTrafStatsEntry> {
public:
	// Contstructors:
	// 
        CTrafStatsList() {};
        CTrafStatsList(CTrafStatsList& copy);
	// (I'm not sure if this one's useful at all...)
        CTrafStatsList(const CTrafStatsEntry& entry);

	// Operators:
	//
        CTrafStatsList& operator+=(const CTrafStatsEntry& entry);
	// Functions:
        CTrafStatsList& insert(const CTrafStatsEntry& entry);
	bool storeToDatabase(PgDatabase* conn);
	void clear();
	unsigned int count() const { return iCount; };

private:
        iterator iIterator;
	unsigned int iCount;
};

#endif