/** Adds an option to the style file. Returns true, if command was inserted successfully or false, if not (e. g. command already exists) */ bool CStyleFile::AddOption(std::tr1::shared_ptr<CDeclareOption>& cmd) { if (!CStyleFileContainer::ContainsString(&m_Options, cmd->GetName())) { m_Options.Add(cmd->GetName()); return true; } return false; }