2014-11-08 12:59:27 -05:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_CORE_TAGS_ARTIST_H
|
|
|
|
#define OCARINA_CORE_TAGS_ARTIST_H
|
|
|
|
|
|
|
|
#include <core/database.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Artist tag
|
|
|
|
*/
|
|
|
|
class Artist : public DatabaseEntry {
|
|
|
|
public:
|
2014-11-08 13:43:23 -05:00
|
|
|
std::string name; /**< Artist name. */
|
|
|
|
std::string lower; /**< Artist name (lowercase). */
|
2014-11-08 12:59:27 -05:00
|
|
|
|
|
|
|
/** Artist tag constructor */
|
|
|
|
Artist();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Artist tag constructor
|
|
|
|
* @param name Artist name
|
|
|
|
*/
|
|
|
|
Artist(const std::string &);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called to access the artist tag's primary key
|
|
|
|
* @return Artist::name
|
|
|
|
*/
|
|
|
|
const std::string primary_key() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read artist information from file.
|
|
|
|
* @param file The file to read from.
|
|
|
|
*/
|
|
|
|
void read(File &);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Write artist information to file.
|
|
|
|
* @param file The file to write to.
|
|
|
|
*/
|
|
|
|
void write(File &);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* OCARINA_CORE_TAGS_ARTIST_H */
|