3.25.4 GetFormat

unsigned int GetFormat() const

Return the file format associated with an input oemolstream. The set of unsigned integer values valid for this property are defined by the OEFormat namespace. By default, when reading from standard in (std::cin), the associated file format is OEFormat::SMILES. The file format property of an input oemolstream may be set using the oemolistream::SetFormat method. Note that the file format property is also set automatically by oemolistream::open based upon the file extension of the specified filename.