ocarina/include/core/tags/artist.h

47 lines
847 B
C
Raw Normal View History

/**
* @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:
std::string name; /**< Artist name. */
std::string lower; /**< Artist name (lowercase). */
/** 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 */