The C++ framework for developing highly scalable, high performance servers on Windows platforms.

StaticString Class Reference

Collaboration diagram for StaticString:

List of all members.


Detailed Description

Lightweight wrapper to tag static string.

Value constructor and objectValue member assignement takes advantage of the StaticString and avoid the cost of string duplication when storing the string or the member name.

Example of usage:

 Json::Value aValue( StaticString("some text") );
 Json::Value object;
 static const StaticString code("code");
 object[code] = 1234;

Public Member Functions

 StaticString (const char *czstring)
 operator const char * () const
const char * c_str () const
 StaticString (const char *czstring)
 operator const char * () const
const char * c_str () const

Constructor & Destructor Documentation

StaticString ( const char *  czstring  )  [inline, explicit]

StaticString ( const char *  czstring  )  [inline, explicit]


Member Function Documentation

operator const char * (  )  const [inline]

const char* c_str (  )  const [inline]

operator const char * (  )  const [inline]

const char* c_str (  )  const [inline]


Generated on Sun Sep 12 19:11:57 2021 for The Server Framework - v7.4 by doxygen 1.5.3