MCPcopy Create free account
hub / github.com/brofield/simpleini / StringWriter

Class StringWriter

SimpleIni.h:414–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413 /** OutputWriter class to write the INI data to a string */
414 class StringWriter : public OutputWriter {
415 std::string &m_string;
416
417 public:
418 StringWriter(std::string &a_string) : m_string(a_string) {}
419 void Write(const char *a_pBuf) { m_string.append(a_pBuf); }
420
421 private:
422 StringWriter(const StringWriter &); // disable
423 StringWriter &operator=(const StringWriter &); // disable
424 };
425
426#ifdef SI_SUPPORT_IOSTREAMS
427 /** OutputWriter class to write the INI data to an ostream */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected