|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CStringStream Class ReferenceMemory stream that is serialized from/to plain text (human-readable).
More...
#include <string_stream.h>
Inheritance diagram for NLMISC::CStringStream:
List of all members.
Public Methods |
| CStringStream (bool inputStream=false, uint32 defaultcapacity=0) |
| Initialization constructor. More...
|
| CStringStream (const CStringStream &other) |
| Copy constructor. More...
|
CStringStream & | operator= (const CStringStream &other) |
| Assignment operator. More...
|
uint | serialSeparatedBufferIn (uint8 *buf, uint len) |
| Input: read len bytes at most from the stream until the next separator, and return the number of bytes read. The separator is then skipped. More...
|
void | serialSeparatedBufferOut (uint8 *buf, uint len) |
| Output: writes len bytes from buf into the stream. More...
|
virtual void | serialBit (bool &bit) |
| Method inherited from IStream. More...
|
template<class T> void | serial (T &obj) |
| Template serialisation (should take the one from IStream). More...
|
template<class T> void | serialCont (std::vector< T > &cont) |
template<class T> void | serialCont (std::list< T > &cont) |
template<class T> void | serialCont (std::deque< T > &cont) |
template<class T> void | serialCont (std::set< T > &cont) |
template<class T> void | serialCont (std::multiset< T > &cont) |
template<class K, class T> void | serialCont (std::map< K, T > &cont) |
template<class K, class T> void | serialCont (std::multimap< K, T > &cont) |
template<class T0, class T1> void | serial (T0 &a, T1 &b) |
template<class T0, class T1, class T2> void | serial (T0 &a, T1 &b, T2 &c) |
template<class T0, class T1, class T2, class T3> void | serial (T0 &a, T1 &b, T2 &c, T3 &d) |
template<class T0, class T1, class T2, class T3, class T4> void | serial (T0 &a, T1 &b, T2 &c, T3 &d, T4 &e) |
template<class T0, class T1, class T2, class T3, class T4, class T5> void | serial (T0 &a, T1 &b, T2 &c, T3 &d, T4 &e, T5 &f) |
virtual void | serialCont (std::vector< uint8 > &cont) |
| Specialisation of serialCont() for vector<uint8>. More...
|
virtual void | serialCont (std::vector< sint8 > &cont) |
| Specialisation of serialCont() for vector<sint8>. More...
|
virtual void | serialCont (std::vector< bool > &cont) |
| Specialisation of serialCont() for vector<bool>. More...
|
virtual void | serialHex (uint32 &b) |
| Serialisation in hexadecimal. More...
|
|
Those method are a specialisation of template method "void serial(T&)".
|
virtual void | serial (uint8 &b) |
virtual void | serial (sint8 &b) |
virtual void | serial (uint16 &b) |
virtual void | serial (sint16 &b) |
virtual void | serial (uint32 &b) |
virtual void | serial (sint32 &b) |
virtual void | serial (uint64 &b) |
virtual void | serial (sint64 &b) |
virtual void | serial (float &b) |
virtual void | serial (double &b) |
virtual void | serial (bool &b) |
virtual void | serial (char &b) |
virtual void | serial (std::string &b) |
virtual void | serial (ucstring &b) |
Detailed Description
Memory stream that is serialized from/to plain text (human-readable).
-
Author:
-
Olivier Cado , Nevrax France
-
Date:
-
2001
Definition at line 42 of file string_stream.h.
Constructor & Destructor Documentation
NLMISC::CStringStream::CStringStream |
( |
bool |
inputStream = false, |
|
|
uint32 |
defaultcapacity = 0 |
|
) |
[inline] |
|
NLMISC::CStringStream::CStringStream |
( |
const CStringStream & |
other |
) |
[inline] |
|
Member Function Documentation
CStringStream& NLMISC::CStringStream::operator= |
( |
const CStringStream & |
other |
) |
[inline] |
|
void NLMISC::CStringStream::serial |
( |
ucstring & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
std::string & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
char & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
bool & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
double & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
float & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
sint64 & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
uint64 & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
sint32 & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
uint32 & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
sint16 & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
uint16 & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
sint8 & |
b |
) |
[virtual] |
|
void NLMISC::CStringStream::serial |
( |
uint8 & |
b |
) |
[virtual] |
|
template<class T0, class T1, class T2, class T3, class T4, class T5> |
void NLMISC::CStringStream::serial |
( |
T0 & |
a, |
|
|
T1 & |
b, |
|
|
T2 & |
c, |
|
|
T3 & |
d, |
|
|
T4 & |
e, |
|
|
T5 & |
f |
|
) |
[inline] |
|
template<class T0, class T1, class T2, class T3, class T4> |
void NLMISC::CStringStream::serial |
( |
T0 & |
a, |
|
|
T1 & |
b, |
|
|
T2 & |
c, |
|
|
T3 & |
d, |
|
|
T4 & |
e |
|
) |
[inline] |
|
template<class T0, class T1, class T2, class T3> |
void NLMISC::CStringStream::serial |
( |
T0 & |
a, |
|
|
T1 & |
b, |
|
|
T2 & |
c, |
|
|
T3 & |
d |
|
) |
[inline] |
|
template<class T0, class T1, class T2> |
void NLMISC::CStringStream::serial |
( |
T0 & |
a, |
|
|
T1 & |
b, |
|
|
T2 & |
c |
|
) |
[inline] |
|
template<class T0, class T1> |
void NLMISC::CStringStream::serial |
( |
T0 & |
a, |
|
|
T1 & |
b |
|
) |
[inline] |
|
template<class T> |
void NLMISC::CStringStream::serial |
( |
T & |
obj |
) |
[inline] |
|
void NLMISC::CStringStream::serialBit |
( |
bool & |
bit |
) |
[virtual] |
|
void NLMISC::CStringStream::serialCont |
( |
std::vector< bool > & |
cont |
) |
[virtual] |
|
virtual void NLMISC::CStringStream::serialCont |
( |
std::vector< sint8 > & |
cont |
) |
[inline, virtual] |
|
virtual void NLMISC::CStringStream::serialCont |
( |
std::vector< uint8 > & |
cont |
) |
[inline, virtual] |
|
template<class K, class T> |
void NLMISC::CStringStream::serialCont |
( |
std::multimap< K, T > & |
cont |
) |
[inline] |
|
template<class K, class T> |
void NLMISC::CStringStream::serialCont |
( |
std::map< K, T > & |
cont |
) |
[inline] |
|
template<class T> |
void NLMISC::CStringStream::serialCont |
( |
std::multiset< T > & |
cont |
) |
[inline] |
|
template<class T> |
void NLMISC::CStringStream::serialCont |
( |
std::set< T > & |
cont |
) |
[inline] |
|
template<class T> |
void NLMISC::CStringStream::serialCont |
( |
std::deque< T > & |
cont |
) |
[inline] |
|
template<class T> |
void NLMISC::CStringStream::serialCont |
( |
std::list< T > & |
cont |
) |
[inline] |
|
template<class T> |
void NLMISC::CStringStream::serialCont |
( |
std::vector< T > & |
cont |
) |
[inline] |
|
void NLMISC::CStringStream::serialHex |
( |
uint32 & |
b |
) |
[virtual] |
|
uint NLMISC::CStringStream::serialSeparatedBufferIn |
( |
uint8 * |
buf, |
|
|
uint |
len |
|
) |
|
|
void NLMISC::CStringStream::serialSeparatedBufferOut |
( |
uint8 * |
buf, |
|
|
uint |
len |
|
) |
|
|
The documentation for this class was generated from the following files:
|
|