コード例 #1
0
void FragmentCatalogEntry::initFromString(const std::string &text) {
  std::stringstream ss(std::ios_base::binary | std::ios_base::out |
                       std::ios_base::in);
  // initialize the stream:
  ss.write(text.c_str(), text.length());
  // now start reading out values:
  initFromStream(ss);
}
コード例 #2
0
TXFFont::TXFFont(const Char8 *name, std::istream &source) :
    Inherited        (name),
    _txfIsBitmap      (   0),
    _txfFontMaxAscent (   0),
    _txfFontMaxDescent(   0),
    _txfFontWidth     (   0),
    _txfFontHeight    (   0),
    _txfNumGlyphs     (   0),
    _txfGlyphs        (NULL),
    _txfImageMap      (NULL)
{
    _valid = true;
    initFromStream(source);
}
コード例 #3
0
ファイル: FragCatParams.cpp プロジェクト: ASKCOS/rdkit
void FragCatParams::initFromString(const std::string &text) {
  std::stringstream ss(text);
  initFromStream(ss);
}
コード例 #4
0
ファイル: FilterCatalogEntry.cpp プロジェクト: dfhahn/rdkit
 void FilterCatalogEntry::initFromString(const std::string &text) {
   std::stringstream ss(text);
   initFromStream(ss);
 }