Is there a way to set EnumerationNode using integer? I would like to set PixelFormat using PFNC standard values.
E.g using node Std::PixelFormat:
...
//Getting pixelFormat node
auto node = deviceNodeMap->Node("Std::PixelFormat");
auto enumNode = std::dynamic_pointer_cast<Cvb::EnumerationNode>(node);
//Getting the Entries is possible to print the values following PFNC standard and as string.
for (auto value : enumNode->Entries()) {
cout << value->NumericValue() << endl;
cout << value->SymbolicValue() << endl;
}
//To set the STRING value is possible to use SetValue()
enumNode->SetValue("Mono8");
I would like to use a similar SetValue() function but using PFNC standard value like 0x01080002 (Mono8).
Does someone know a way or the proper way to set this node using integer?
Just keep in mind: the integer value is not standardized in the GenICam Standard Features Naming Convention, only the string values are. This is why only the string version of SetValue is provided.
PixelFormat has the Pixel Format Naming Convention, though, which also defines integer constants. Thus in this case it should be fine.