DCL 4.0
Loading...
Searching...
No Matches
ID3v1.h
Go to the documentation of this file.
1#ifndef __DCL_ID3V1_H__
2#define __DCL_ID3V1_H__ 20250120
3
4#ifndef __DCL_OBJECT_H__
5#include <dcl/Object.h>
6#endif
7
8__DCL_BEGIN_NAMESPACE
9
10class File;
11
12class ID3v1 : public Object
13{
15
16public:
17 ID3v1();
18
28 bool read(File& _file);
29
33 bool read(const char _data[128]);
34
35 virtual String toString() const;
36
37 char version() const {
38 return __version;
39 }
40
41 const String& TAG() const {
42 return __TAG;
43 }
44
45 const String& title() const {
46 return __title;
47 }
48
49 const String& artist() const {
50 return __artist;
51 }
52
53 const String& album() const {
54 return __album;
55 }
56
57 const String& year() const {
58 return __year;
59 }
60
61 const String& comment() const {
62 return __comment;
63 }
64
65 char track() const {
66 return __track;
67 }
68
69 char genre() const {
70 return __genre;
71 }
72
73protected:
74
76
77 // "TAG"
78 String __TAG;
79 String __title;
80 String __artist;
81 String __album;
82 String __year;
83 String __comment;
84
85 char __track;
86 char __genre;
87};
88
89__DCL_END_NAMESPACE
90
91#endif // __DCL_ID3V1_H__
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:210
Definition File.h:38
Definition ID3v1.h:13
char __version
Definition ID3v1.h:75
String __album
Definition ID3v1.h:81
String __TAG
Definition ID3v1.h:78
String __artist
Definition ID3v1.h:80
String __year
Definition ID3v1.h:82
String __comment
Definition ID3v1.h:83
char __genre
Definition ID3v1.h:86
char __track
Definition ID3v1.h:85
String __title
Definition ID3v1.h:79
Object()
Definition Object.cpp:183
virtual String toString() const
Definition Object.cpp:187