Пример #1
0
bool Library::removeMember(int aMemberId) 
{
	int aMemberIndex = getMemberIndex(aMemberId);
	if (aMemberIndex >= 0) {
		members->remove(aMemberIndex);
		cout<<endl<<"Member ID "<<aMemberId<<" has been removed!"<<endl<<endl;
		return true;
	} else {
		cout<<endl<<"Member ID not found!"<<endl<<endl;
		return false;
	}

}
Пример #2
0
int CompType::getMemberIndex(const H5std_string& name) const
{
   return(getMemberIndex(name.c_str()));
}
Пример #3
0
Declaration *ASTUserType::getMember(std::string member) {
    long mi = getMemberIndex(member);
    if(mi < 0) return NULL;
    return getMember(mi);
}