23.1.2 OECreateCanSmiString

void MyWriteSmilesMolecule(oemolistream &ifs, OEMolBase &mol)
{
  const char *title;
  string str;

  OEFindRingAtomsAndBonds(mol);
  OEAssignAromaticFlags(mol,OEAroModelDaylight);
  OECreateCanSmiString(str,mol);
  ofs << str;
  title = mol.GetTitle();
  if (title && *title)
    ofs << " " << title;
  ofs << endl;
}