Describes a diagnostic reported while reading a model file.
More...
#include <cadex/ModelData/ModelReaderDiagnosticsData.hxx>
|
| enum class | SeverityType { Warning = 0
, Error = 1
} |
| | Specifies the severity of a diagnostic. More...
|
| |
| enum class | CategoryType { Parsing = 0
, Conversion = 1
} |
| | Specifies the stage of the import process that reported a diagnostic. More...
|
| |
| enum class | CodeType { UnsupportedVersion = 0
, UnsupportedFileType = 1
, GenericGeometryError = 2
, Unknown = 3
} |
| | Specifies a machine-readable diagnostic code. More...
|
| |
|
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
| |
|
| | ModelReaderDiagnosticsData (SeverityType theSeverity, CategoryType theCategory, CodeType theCode, const UTF16String &theMessage) |
| | Constructs a diagnostic record.
|
| |
| SeverityType | Severity () const |
| | Returns the severity of the diagnostic.
|
| |
| CategoryType | Category () const |
| | Returns the stage of the import process that reported the diagnostic.
|
| |
| CodeType | Code () const |
| | Returns the machine-readable diagnostic code.
|
| |
| const UTF16String & | Message () const |
| | Returns the human-readable diagnostic message.
|
| |
| size_t | Id () const |
| | Return unique identifier of public object.
|
| |
|
internal::BaseObjectImpl * | Impl () const |
| |
|
bool | IsNull () const |
| |
|
| operator bool () const |
| |
|
template<typename T > |
| bool | IsOfType () const |
| |
| template<typename T > |
| T * | Impl () const |
| | Reserved for internal use.
|
| |
|
|
| BaseObject (const ImplType &theImpl) |
| |
Describes a diagnostic reported while reading a model file.
A diagnostic contains a severity, an import-stage category, a machine-readable code, and a human-readable message.
- See also
- ModelReaderDiagnostics, ModelReader::Diagnostics().
◆ CategoryType
Specifies the stage of the import process that reported a diagnostic.
◆ CodeType
Specifies a machine-readable diagnostic code.
◆ SeverityType
Specifies the severity of a diagnostic.
◆ ModelReaderDiagnosticsData()
| cadex::ModelData::ModelReaderDiagnosticsData::ModelReaderDiagnosticsData |
( |
SeverityType | theSeverity, |
|
|
CategoryType | theCategory, |
|
|
CodeType | theCode, |
|
|
const UTF16String & | theMessage ) |
Constructs a diagnostic record.
- Parameters
-
| theSeverity | Severity of the diagnostic. |
| theCategory | Stage of the import process that reported the diagnostic. |
| theCode | Machine-readable diagnostic code. |
| theMessage | Human-readable details of the diagnostic. |
◆ Category()
Returns the stage of the import process that reported the diagnostic.
◆ Code()
Returns the machine-readable diagnostic code.
◆ Message()
| const UTF16String & cadex::ModelData::ModelReaderDiagnosticsData::Message |
( |
| ) |
const |
Returns the human-readable diagnostic message.
◆ Severity()
Returns the severity of the diagnostic.