ImFusion C++ SDK 4.4.0
ImFusion::ML::Status Struct Reference

#include <ImFusion/ML/MLCommon.h>

Convenience tool for returning error messages together with statuses. More...

Detailed Description

Convenience tool for returning error messages together with statuses.

Examples
ExamplePlugin.cpp.

Public Types

enum class  Code { Unknown = -1 , Success = 0 , ConfigurationError = 1 , RuntimeError = 2 }
 Return code.

Public Member Functions

bool ok () const

Static Public Member Functions

static Status OK ()

Public Attributes

Code code = Code::Unknown
std::optional< std::stringerrorMessage

The documentation for this struct was generated from the following file:
  • ImFusion/ML/MLCommon.h
Search Tab / S to search, Esc to close