23 #ifndef __MUSICBRAINZ3_RELATION_H__
24 #define __MUSICBRAINZ3_RELATION_H__
84 Relation(
const std::string &relationType = std::string(),
85 const std::string &targetType = std::string(),
86 const std::string &targetId = std::string(),
89 const std::string &beginDate = std::string(),
90 const std::string &endDate = std::string(),
103 std::string getType()
const;
110 void setType(
const std::string &type);
120 std::string getTargetId()
const;
129 void setTargetId(
const std::string &targetId);
142 std::string getTargetType()
const;
151 void setTargetType(
const std::string &targetType);
163 std::string getBeginDate()
const;
172 void setBeginDate(
const std::string &dateStr);
185 std::string getEndDate()
const;
194 void setEndDate(
const std::string &dateStr);
220 void setDirection(
const Direction direction);
240 int getNumAttributes()
const;
251 std::string getAttribute(
int index)
const;
258 void addAttribute(
const std::string &attribute);
268 Entity *getTarget()
const;
278 void setTarget(
Entity *target);
282 class RelationPrivate;