IOSS 2.0

Public Member Functions | Private Attributes | List of all members
Json::StaticString Class Reference

Lightweight wrapper to tag static string. More...

`#include <json.h>`

## Public Member Functions
| StaticString (const char *czstring)
| operator const char * () const
const char * | c_str () const

## Private Attributes
const char * | c_str_

## Detailed Description

Lightweight wrapper to tag static string.

Value constructor and objectValue member assignment 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;

## Constructor & Destructor Documentation

## ◆ StaticString()

Json::StaticString::StaticString | ( | const char * | czstring | ) |
| inline explicit

## Member Function Documentation

## ◆ c_str()

const char* Json::StaticString::c_str | ( |  | ) | const
| inline

## ◆ operator const char *()

Json::StaticString::operator const char * | ( |  | ) | const
| inline

## Member Data Documentation

## ◆ c_str_

const char* Json::StaticString::c_str_
| private

The documentation for this class was generated from the following file:

- src/visualization/ParaViewCatalystIossAdapter/parser/jsoncpp-master/dist/json/json.h