Qx v0.5.7
Qt Extensions Library
Loading...
Searching...
No Matches
QxJson::File Class Reference

The file class represents a JSON file node for use in error contexts. More...

Public Member Functions

 File (const QFile &docFile, const QString &fileError={})
 
 File (const QFileInfo &docFile, const QString &fileError={})
 
 File (const QString &filename, const QString &fileError={})
 
QString string () const
 

Detailed Description

Note
This class is irrelevant in user code except for some instances of complex custom JSON parsing
See also
Qx::JsonError::withContext().

Constructor & Destructor Documentation

◆ File() [1/3]

QxJson::File::File ( const QString & filename,
const QString & fileError = {} )

Constructs a file node with the identifier of filename and file specific error information fileError, if any.

◆ File() [2/3]

QxJson::File::File ( const QFile & docFile,
const QString & fileError = {} )

Constructs a file node with the identifier set to the filename of docFile and file specific error information fileError, if any.

◆ File() [3/3]

QxJson::File::File ( const QFileInfo & docFile,
const QString & fileError = {} )

Constructs a file node with the identifier set to the absolute path of docFile and file specific error information fileError, if any.

Member Function Documentation

◆ string()

QString QxJson::File::string ( ) const

Returns the string representation of the node.


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