Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CArtist Class Reference

#include <Artist.h>

Public Member Functions

bool operator< (const CArtist &a) const
 
void MergeScrapedArtist (const CArtist &source, bool override=true)
 
void Reset ()
 
bool Load (const TiXmlElement *element, bool append=false, bool prioritise=false)
 Load artist information from an XML file. See CVideoInfoTag::Load for a description of the types of elements we load. More...
 
bool Save (TiXmlNode *node, const std::string &tag, const std::string &strPath)
 
void SetDateAdded (const std::string &strDateAdded)
 

Public Attributes

long idArtist = -1
 
std::string strArtist
 
std::string strSortName
 
std::string strMusicBrainzArtistID
 
std::string strType
 
std::string strGender
 
std::string strDisambiguation
 
std::vector< std::string > genre
 
std::string strBiography
 
std::vector< std::string > styles
 
std::vector< std::string > moods
 
std::vector< std::string > instruments
 
std::string strBorn
 
std::string strFormed
 
std::string strDied
 
std::string strDisbanded
 
std::vector< std::string > yearsActive
 
std::string strPath
 
CScraperUrl thumbURL
 
CFanart fanart
 
std::map< std::string, std::string > art
 
std::vector< std::pair< std::string, std::string > > discography
 
CDateTime dateAdded
 
bool bScrapedMBID = false
 
std::string strLastScraped
 

Member Function Documentation

◆ Load()

bool CArtist::Load ( const TiXmlElement *  element,
bool  append = false,
bool  prioritise = false 
)

Load artist information from an XML file. See CVideoInfoTag::Load for a description of the types of elements we load.

Parameters
elementthe root XML element to parse.
appendwhether information should be added to the existing tag, or whether it should be reset first.
prioritiseif appending, whether additive tags should be prioritised (i.e. replace or prepend) over existing values. Defaults to false.
See also
CVideoInfoTag::Load

◆ MergeScrapedArtist()

void CArtist::MergeScrapedArtist ( const CArtist source,
bool  override = true 
)

◆ operator<()

bool CArtist::operator< ( const CArtist a) const
inline

◆ Reset()

void CArtist::Reset ( void  )
inline

◆ Save()

bool CArtist::Save ( TiXmlNode *  node,
const std::string &  tag,
const std::string &  strPath 
)

◆ SetDateAdded()

void CArtist::SetDateAdded ( const std::string &  strDateAdded)

Member Data Documentation

◆ art

std::map<std::string, std::string> CArtist::art

◆ bScrapedMBID

bool CArtist::bScrapedMBID = false

◆ dateAdded

CDateTime CArtist::dateAdded

◆ discography

std::vector<std::pair<std::string,std::string> > CArtist::discography

◆ fanart

CFanart CArtist::fanart

◆ genre

std::vector<std::string> CArtist::genre

◆ idArtist

long CArtist::idArtist = -1

◆ instruments

std::vector<std::string> CArtist::instruments

◆ moods

std::vector<std::string> CArtist::moods

◆ strArtist

std::string CArtist::strArtist

◆ strBiography

std::string CArtist::strBiography

◆ strBorn

std::string CArtist::strBorn

◆ strDied

std::string CArtist::strDied

◆ strDisambiguation

std::string CArtist::strDisambiguation

◆ strDisbanded

std::string CArtist::strDisbanded

◆ strFormed

std::string CArtist::strFormed

◆ strGender

std::string CArtist::strGender

◆ strLastScraped

std::string CArtist::strLastScraped

◆ strMusicBrainzArtistID

std::string CArtist::strMusicBrainzArtistID

◆ strPath

std::string CArtist::strPath

◆ strSortName

std::string CArtist::strSortName

◆ strType

std::string CArtist::strType

◆ styles

std::vector<std::string> CArtist::styles

◆ thumbURL

CScraperUrl CArtist::thumbURL

◆ yearsActive

std::vector<std::string> CArtist::yearsActive

The documentation for this class was generated from the following files: