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; }