48 lines
771 B
C++
48 lines
771 B
C++
#ifndef LIBSARIA_TAGS_H
|
|
#define LIBSARIA_TAGS_H
|
|
|
|
#include <libsaria/files.h>
|
|
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
class TrackTag
|
|
{
|
|
private:
|
|
string filepath;
|
|
string title;
|
|
string artist;
|
|
string album;
|
|
string comment;
|
|
string genre;
|
|
string lenstr;
|
|
unsigned int year;
|
|
unsigned int track;
|
|
int length;
|
|
int bitrate;
|
|
int sample;
|
|
int channels;
|
|
ino_t inode;
|
|
|
|
void make_lenstr();
|
|
|
|
public:
|
|
TrackTag();
|
|
TrackTag(const TrackTag &);
|
|
TrackTag(string, ino_t);
|
|
TrackTag(InFile &);
|
|
~TrackTag();
|
|
void save(OutFile &);
|
|
|
|
ino_t get_inode();
|
|
unsigned int get_track();
|
|
string get_title();
|
|
string get_lenstr();
|
|
string get_artist();
|
|
string get_album();
|
|
string get_filepath();
|
|
unsigned int get_year();
|
|
};
|
|
|
|
#endif /* LIBSARIA_TAGS_H */
|