Пример #1
0
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;
}
Пример #2
0
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()));
}