Public Member Functions | |
| std::map< std::string, Parameter > | Connect () override |
| void | Disconnect () override |
| CheckResult | CheckConnection () const override |
| bool | IsConnected () const override |
| std::string | GetProtocol () const override |
| Get the protocol name used by this adapter. | |
| BasicParams | GetBasicParams () const override |
| Get basic camera parameters in standardized units. Adapters read their native parameters and convert to common units. | |
| void | ReceiveFrame (bool &, uint64_t, std::span< uint8_t > &, FrameInfo &) override |
| Parameter | Read (const std::string &) override |
| Read a single parameter from the camera. | |
| std::vector< Parameter > | Read (const std::vector< std::string > &) override |
| Read multiple parameters from the camera. | |
| void | Write (const Parameter &) override |
| Write a single parameter to the camera. | |
| void | Write (const std::vector< Parameter > &) override |
| Write multiple parameters to the camera. | |
| std::vector< Parameter > | Scan () override |
| Scan all available parameters from the camera Re-scans the device parameter space, updates the namespace repository, and returns all discovered parameters. | |
| AcquisitionState | GetAcquisitionState () const override |
| Get the current acquisition state. | |
| void | StartAcquisition (std::optional< int64_t >=std::nullopt) override |
| Start frame acquisition. | |
| void | StopAcquisition () override |
| Stop frame acquisition. | |
Public Member Functions inherited from camcom::common::AdapterBase | |
| AdapterBase () | |
| virtual | ~AdapterBase () |
| virtual void | Initialise (const ReceiveCfg &cfg) |
| virtual NativeDocument | GetNativeParameterDocument () const |
| Get native parameter document from camera (protocol-specific) For GenICam cameras, returns the XML register description. Default implementation returns empty NativeDocument (not supported). | |
| void | SetAddress (const std::string &address) |
| Set the camera address/URI for connection. | |
| void | SetTimeout (double timeout_seconds) |
| Set the connection timeout. | |
Additional Inherited Members | |
Static Public Member Functions inherited from camcom::common::AdapterBase | |
| static std::string | ResolveAddress (const std::string &address, bool allow_device_id=false) |
Protected Attributes inherited from camcom::common::AdapterBase | |
| const std::chrono::duration< double_t > | m_connect_timeout {std::chrono::seconds(10)} |
| std::string | m_cam_address |
| std::chrono::duration< double_t > | m_timeout |
| bool | m_initialised {false} |
| std::chrono::time_point< std::chrono::system_clock > | m_time_last_stop {common::TimeNow()} |
| std::chrono::time_point< std::chrono::system_clock > | m_time_last_frame_recv {m_time_last_stop} |
| bool | m_waiting_for_frame {false} |
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Get the current acquisition state.
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Get basic camera parameters in standardized units. Adapters read their native parameters and convert to common units.
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Get the protocol name used by this adapter.
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Read a single parameter from the camera.
| name | Name of the parameter to read |
| std::runtime_error | if parameter not found or read fails |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Read multiple parameters from the camera.
| names | Vector of parameter names to read |
| std::runtime_error | if any parameter not found or read fails |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Scan all available parameters from the camera Re-scans the device parameter space, updates the namespace repository, and returns all discovered parameters.
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Start frame acquisition.
| frame_count | Number of frames to acquire, or std::nullopt for continuous
|
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Stop frame acquisition.
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Write a single parameter to the camera.
| parameter | Parameter object containing name, value, and type to write |
| std::runtime_error | if parameter not found or write fails |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Write multiple parameters to the camera.
| parameters | Vector of Parameter objects to write |
| std::runtime_error | if any parameter not found or write fails |
Implements camcom::common::AdapterBase.