Any class X that implements the following two functions:
It is worthwhile, however, to provide the friend functions using InputStream and OutputStream so that the same services can be used both this class and by NetworkFormat.
Static Public Member Functions | |
static int | createAsciiDump (const X &a, std::ostream &os, const std::string &sep_string) |
To get the Ascii dump of this object's contents. | |
static SmartPtr< X > | createObject (std::istream &is, const std::string &sep_string) |
To get an object from its Ascii dump. | |
Protected Member Functions | |
AsciiDump () | |
We are making this private so that no one tries to instantiate this class. | |
AsciiDump (const AsciiDump &) | |
We are making this private so that no one tries to instantiate this class. | |
AsciiDump & | operator= (const AsciiDump &) |
We are making this private so that no one tries to instantiate this class. |
code::AsciiDump< X >::AsciiDump | ( | ) | [protected] |
We are making this private so that no one tries to instantiate this class.
code::AsciiDump< X >::AsciiDump | ( | const AsciiDump< X > & | ) | [protected] |
We are making this private so that no one tries to instantiate this class.
static int code::AsciiDump< X >::createAsciiDump | ( | const X & | a, | |
std::ostream & | os, | |||
const std::string & | sep_string | |||
) | [inline, static] |
To get the Ascii dump of this object's contents.
The | object whose portable representation is to be obtained. |
static SmartPtr<X> code::AsciiDump< X >::createObject | ( | std::istream & | is, | |
const std::string & | sep_string | |||
) | [inline, static] |
To get an object from its Ascii dump.
The | stream to read from. |
AsciiDump& code::AsciiDump< X >::operator= | ( | const AsciiDump< X > & | ) | [protected] |
We are making this private so that no one tries to instantiate this class.