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
10
class
MainArguments
;
11
12
class
TagCounter
13
{
14
public
:
15
TagCounter
() {
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]"
,
31
ID3v1
,
ID3v22
,
ID3v23
,
ID3v24
,
APEv1
,
APEv2
,
error
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__
Object.h
MainArguments
Definition
entitycopy/main.h:11
TagCounter::APEv2
int APEv2
Definition
TagCounter.h:40
TagCounter::ID3v23
int ID3v23
Definition
TagCounter.h:37
TagCounter::read
static void read(const String &_filename, TagCounter &_counter)
Definition
TagCounter.cpp:38
TagCounter::ID3v1
int ID3v1
Definition
TagCounter.h:35
TagCounter::toString
String toString() const
Definition
TagCounter.h:28
TagCounter::ID3v24
int ID3v24
Definition
TagCounter.h:38
TagCounter::ID3v22
int ID3v22
Definition
TagCounter.h:36
TagCounter::TagCounter
TagCounter()
Definition
TagCounter.h:15
TagCounter::operator+=
void operator+=(const TagCounter _x)
Definition
TagCounter.h:19
TagCounter::error
int error
Definition
TagCounter.h:41
TagCounter::APEv1
int APEv1
Definition
TagCounter.h:39
TagCounter::readDir
static void readDir(const String &_path, TagCounter &_counter, const MainArguments &_args)
Definition
TagCounter.cpp:101
work
mediatag
TagCounter.h
Generated by
1.14.0