Zivid C++ API 2.12.0+6afd4961-1
|
This enum describes the current status of this camera. The enum can have the following values: More...
#include <Zivid/CameraState.h>
Public Types | |
enum class | ValueType { inaccessible , busy , firmwareUpdateRequired , updatingFirmware , available , connecting , connected , disconnecting , disappeared } |
The type of the underlying value. More... | |
Public Member Functions | |
Status ()=default | |
Default constructor. | |
constexpr | Status (ValueType value) |
Constructor. | |
ValueType | value () const |
Get the value. | |
std::string | toString () const |
Get the value as string. | |
bool | operator== (const Status &other) const |
Comparison operator. | |
bool | operator!= (const Status &other) const |
Comparison operator. | |
Static Public Member Functions | |
static std::set< ValueType > | validValues () |
All valid values of Status. | |
Static Public Attributes | |
static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafValue |
The type of this node. | |
static constexpr const char * | path { "Status" } |
The full path for this value. | |
static constexpr const char * | name { "Status" } |
The name of this value. | |
static constexpr const char * | description |
The description for this value. | |
static const Status | inaccessible |
inaccessible | |
static const Status | busy |
busy | |
static const Status | firmwareUpdateRequired |
firmwareUpdateRequired | |
static const Status | updatingFirmware |
updatingFirmware | |
static const Status | available |
available | |
static const Status | connecting |
connecting | |
static const Status | connected |
connected | |
static const Status | disconnecting |
disconnecting | |
static const Status | disappeared |
disappeared | |
Friends | |
struct | DataModel::Detail::Befriend< Status > |
std::ostream & | operator<< (std::ostream &stream, const Status::ValueType &value) |
Operator to serialize ValueType to a stream. | |
std::ostream & | operator<< (std::ostream &stream, const Status &value) |
Operator to serialize the value to a stream. | |
This enum describes the current status of this camera. The enum can have the following values:
inaccessible
: The camera was discovered, but the SDK is not able to connect to this camera. This can be because the IP settings of the camera and the PC are not compatible, or because there are several cameras with the same IP connected to your PC. The InaccessibleReason
enum will give you more details about why this camera is not accessible. The network configuration of the camera can be changed using the ZividNetworkCameraConfigurator CLI tool. See the knowledge base for more information.busy
: The camera is currently in use by another process. This can be a different process on the same PC, or on a different PC if the camera is shared on a network.firmwareUpdateRequired
: The camera is accessible, but requires a firmware update before you can connect to it.updatingFirmware
: The camera firmware is currently being updated in the current process.available
: The camera is available for use by the current process. This means that you can invoke camera.connect() on this camera.connecting
: The camera is currently connecting in the current process.connected
: The camera is connected in the current process. This means camera.connect() has successfully completed and you can capture using this camera.disconnecting
: The camera is currently disconnecting in the current process. When disconnection has completed, the camera will normally go back to the available
state.disappeared
: The camera was found earlier, but it can no longer be found. The connection between the PC and the camera may be disrupted, or the camera may have lost power. When in disappeared
state, the camera will not be returned from Application::cameras()
. The camera will go back to one of the other states if the camera is later found again.
|
default |
Default constructor.
Constructor.
Comparison operator.
Comparison operator.
std::string Zivid::CameraState::Status::toString | ( | ) | const |
Get the value as string.
All valid values of Status.
ValueType Zivid::CameraState::Status::value | ( | ) | const |
Get the value.
Operator to serialize the value to a stream.
|
friend |
Operator to serialize ValueType to a stream.
The description for this value.
The name of this value.
|
staticconstexpr |
The type of this node.
The full path for this value.