Status Codes

group NVCV_CPP_UTIL_STATUS

Enum class representing various status codes for operations.

This enum is coupled to NVCVStatus, the status codes are the same. For further details, see NVCVStatus.

Enums

enum class Status : int8_t

Values:

enumerator SUCCESS
enumerator ERROR_NOT_IMPLEMENTED
enumerator ERROR_INVALID_ARGUMENT
enumerator ERROR_INVALID_IMAGE_FORMAT
enumerator ERROR_INVALID_OPERATION
enumerator ERROR_DEVICE
enumerator ERROR_NOT_READY
enumerator ERROR_OUT_OF_MEMORY
enumerator ERROR_INTERNAL
enumerator ERROR_NOT_COMPATIBLE
enumerator ERROR_OVERFLOW
enumerator ERROR_UNDERFLOW

Functions

inline const char *GetName(Status status)

Retrieves the name (string representation) of the given status.

Parameters:

status – Status code whose name is to be retrieved.

Returns:

String representation of the status.

inline std::ostream &operator<<(std::ostream &out, Status status)

Overloads the stream insertion operator for Status enum.

Parameters:
  • out – Output stream to which the status string will be written.

  • status – Status code to be output.

Returns:

Reference to the modified output stream.

inline std::ostream &operator<<(std::ostream &out, NVCVStatus status)

Overloads the stream insertion operator for NVCVStatus.

Parameters:
  • out – Output stream to which the status string will be written.

  • status – NVCVStatus code to be output.

Returns:

Reference to the modified output stream.