DCKeywordList

class DCKeywordList

This is a list of keywords (see DCKeyword) that may be set on a particular field.

Inheritance diagram

Inheritance diagram of DCKeywordList

bool compare_keywords(DCKeywordList const &other) const

Returns true if this list has the same keywords as the other list, false if some keywords differ. Order is not considered important.

DCKeyword const *get_keyword(int n) const

Returns the nth keyword in the list.

DCKeyword const *get_keyword_by_name(std::string const &name) const

Returns the keyword in the list with the indicated name, or NULL if there is no keyword in the list with that name.

int get_num_keywords(void) const

Returns the number of keywords in the list.

bool has_keyword(std::string const &name) const
bool has_keyword(DCKeyword const *keyword) const

Returns true if this list includes the indicated keyword, false otherwise.