DCL 4.0
Loading...
Searching...
No Matches
TagCounter.h
Go to the documentation of this file.
1#ifndef __DCL_TAG_COUNTER_H__
2#define __DCL_TAG_COUNTER_H__ 20250120
3
4#ifndef __DCL_OBJECT_H__
5#include <dcl/Object.h>
6#endif
7
8__DCL_BEGIN_NAMESPACE
9
10class MainArguments;
11
13{
14public:
16 ID3v1 = ID3v22 = ID3v23 = ID3v24 = APEv1 = APEv2 = error = 0;
17 }
18
19 void operator += (const TagCounter _x) {
20 ID3v1 += _x.ID3v1;
21 ID3v22 += _x.ID3v22;
22 ID3v23 += _x.ID3v23;
23 ID3v24 += _x.ID3v24;
24 APEv1 += _x.APEv1;
25 APEv2 += _x.APEv2;
26 }
27
28 String toString() const {
29 return String::format(L""
30 "ID3v1[%d] ID3v22[%d] ID3v23[%d] ID3v24[%d] APEv1[%d] APEv2[%d] error[%d]",
32 );
33 }
34
35 int ID3v1;
36 int ID3v22;
37 int ID3v23;
38 int ID3v24;
39 int APEv1;
40 int APEv2;
41 int error;
42
43 static void read(const String& _filename, TagCounter& _counter);
44 static void readDir(const String& _path, TagCounter& _counter,
45 const MainArguments& _args);
46};
47
48__DCL_END_NAMESPACE
49
50#endif // __DCL_TAG_COUNTER_H__
static void read(const String &_filename, TagCounter &_counter)
String toString() const
Definition TagCounter.h:28
void operator+=(const TagCounter _x)
Definition TagCounter.h:19
static void readDir(const String &_path, TagCounter &_counter, const MainArguments &_args)