string_stream.cpp File Reference


Detailed Description

Class CStringStream (plain text memory streams)

Id
string_stream.cpp,v 1.8 2003/08/05 14:46:13 cado Exp

Definition in file string_stream.cpp.

#include "nel/misc/string_stream.h"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  NLMISC

Defines

#define readnumber(dest, thetype, digits, convfunc)
#define writenumber(src, format, digits)


Define Documentation

#define readnumber dest,
thetype,
digits,
convfunc   ) 
 

Value:

char number_as_cstring [digits+1]; \
        uint realdigits = serialSeparatedBufferIn( (uint8*)&number_as_cstring, digits ); \
        number_as_cstring[realdigits] = '\0'; \
        dest = (thetype)convfunc( number_as_cstring );

Definition at line 85 of file string_stream.cpp.

#define writenumber src,
format,
digits   ) 
 

Value:

char number_as_cstring [digits+1]; \
        sprintf( number_as_cstring, format, src ); \
        serialSeparatedBufferOut( (uint8*)&number_as_cstring, strlen(number_as_cstring) );

Definition at line 92 of file string_stream.cpp.


Generated on Tue Mar 16 06:43:22 2004 for NeL by doxygen 1.3.6