NeKernel dev
Loading...
Searching...
No Matches
Kernel::JsonObject< CharKind > Class Template Referencefinal

JSON object representation. More...

#include <Json.h>

Public Member Functions

 JsonObject ()
 JsonObject (SizeT lhsLen, SizeT rhsLen)
 ~JsonObject ()=default
BoolIsUndefined ()
KBasicString< CharKind > & AsKey ()
 returns the key of the json
KBasicString< CharKind > & AsValue ()
 returns the value of the json.

Public Attributes

STATIC JsonObject< CharKind > kNull

Private Attributes

Bool fUndefined
KBasicString< CharKind > fKey
KBasicString< CharKind > fValue

Detailed Description

template<typename CharKind = Char>
class Kernel::JsonObject< CharKind >

JSON object representation.

================================================================================

autotoc_md111

Constructor & Destructor Documentation

◆ JsonObject() [1/2]

template<typename CharKind = Char>
Kernel::JsonObject< CharKind >::JsonObject ( )
inlineexplicit

◆ JsonObject() [2/2]

template<typename CharKind = Char>
Kernel::JsonObject< CharKind >::JsonObject ( SizeT lhsLen,
SizeT rhsLen )
inlineexplicit

◆ ~JsonObject()

template<typename CharKind = Char>
Kernel::JsonObject< CharKind >::~JsonObject ( )
default

Member Function Documentation

◆ AsKey()

template<typename CharKind = Char>
KBasicString< CharKind > & Kernel::JsonObject< CharKind >::AsKey ( )
inline

returns the key of the json

Returns
the key as string view.

◆ AsValue()

template<typename CharKind = Char>
KBasicString< CharKind > & Kernel::JsonObject< CharKind >::AsValue ( )
inline

returns the value of the json.

Returns
the key as string view.

◆ IsUndefined()

template<typename CharKind = Char>
Bool & Kernel::JsonObject< CharKind >::IsUndefined ( )
inline

Member Data Documentation

◆ fKey

template<typename CharKind = Char>
KBasicString<CharKind> Kernel::JsonObject< CharKind >::fKey
private

◆ fUndefined

template<typename CharKind = Char>
Bool Kernel::JsonObject< CharKind >::fUndefined
private

◆ fValue

template<typename CharKind = Char>
KBasicString<CharKind> Kernel::JsonObject< CharKind >::fValue
private

◆ kNull

template<typename CharKind = Char>
STATIC JsonObject<CharKind> Kernel::JsonObject< CharKind >::kNull

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