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); }
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); }
void FragCatParams::initFromString(const std::string &text) { std::stringstream ss(text); initFromStream(ss); }
void FilterCatalogEntry::initFromString(const std::string &text) { std::stringstream ss(text); initFromStream(ss); }