bool CodeGenerator::generate(const ObjectSequence& objects,ostream& os,size_t indent) { for (ObjectSequence::const_iterator it = objects.begin(); it != objects.end(); it++) { generate(*it,os,indent); } return true; }
void LitesqlObjectPanel::setBaseClasses(const ObjectSequence& baseClasses) { m_choiceInheritsFrom->Clear(); m_choiceInheritsFrom->Append(wxString::FromUTF8(Object::DEFAULT_BASE->name.c_str())); for (ObjectSequence::const_iterator it = baseClasses.begin(); it != baseClasses.end(); it++) { if ((*it)->name!=m_pObject->name) { m_choiceInheritsFrom->Append(wxString::FromUTF8((*it)->name.c_str())); } } m_choiceInheritsFrom->SetStringSelection(wxString::FromUTF8(m_pObject->inherits.c_str())); }