swift
Public Member Functions | Friends | List of all members
swift::misc::CJsonScope Class Reference

Pseudo-RAII pattern that tracks the current JSON value being converted. More...

Public Member Functions

 CJsonScope (const QString &&, int=-1)=delete
 QString constructor argument must be an lvalue.
 
 ~CJsonScope ()
 Destructor.
 
 CJsonScope (const QString &name, int index=-1) noexcept
 Construct a scope with the given name and optional index subscript.
 
 CJsonScope (QLatin1String name, int index=-1) noexcept
 Construct a scope with the given name and optional index subscript.
 
template<size_t N>
 CJsonScope (const char(&name)[N], int index=-1) noexcept
 Construct a scope with the given name and optional index subscript.
 
 CJsonScope (const CJsonScope &)=delete
 Not copyable.
 
CJsonScopeoperator= (const CJsonScope &)=delete
 Not copyable.
 

Friends

class CJsonException
 

Detailed Description

Pseudo-RAII pattern that tracks the current JSON value being converted.

Will be used to construct a stack trace for CJsonException::getStackTrace. Class is optimized to introduce minimal overhead in the unexceptional case.

Definition at line 49 of file jsonexception.h.


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