camcom 1.0.0-pre2
 
Loading...
Searching...
No Matches
type_mapping.hpp
Go to the documentation of this file.
1
8
9#ifndef CAMCOM_GENICAM_TYPE_MAPPING_HPP
10#define CAMCOM_GENICAM_TYPE_MAPPING_HPP
11
15
16namespace camcom::genicam {
17
19common::Parameter nodeToParameter(const GenICamNode& node);
20
23bool parameterToNode(const common::Parameter& param, GenICamNode& node);
24
26common::DataType pixelFormatToDataType(const std::string& pixel_format);
27
30
32int bytesPerPixel(const std::string& pixel_format);
33
34} // namespace camcom::genicam
35
36#endif // CAMCOM_GENICAM_TYPE_MAPPING_HPP
CamCom data type — re-export of the ELT IFW (ifw-fnd) data type.
ifw::fnd::datatype::DataType DataType
Definition datatype.hpp:27
Definition adapter.cpp:28
std::string dataTypeToPixelFormat(common::DataType dtype)
Map a CamCom DataType to a GenICam PixelFormat string.
Definition type_mapping.cpp:220
int bytesPerPixel(const std::string &pixel_format)
Get bytes per pixel for a GenICam PixelFormat string.
Definition type_mapping.cpp:232
std::variant< IntegerNode, FloatNode, BooleanNode, StringNode, EnumerationNode, CommandNode, CategoryNode > GenICamNode
Variant holding any concrete node type.
Definition node_types.hpp:99
common::DataType pixelFormatToDataType(const std::string &pixel_format)
Map a GenICam PixelFormat string to CamCom DataType.
Definition type_mapping.cpp:208
common::Parameter nodeToParameter(const GenICamNode &node)
Convert a GenICamNode to a CamCom Parameter (name + value + type)
Definition type_mapping.cpp:46
bool parameterToNode(const common::Parameter &param, GenICamNode &node)
Definition type_mapping.cpp:104
GenICam node type model.
Header file for the CamCom Common Library.