Public Member Functions | |
| MockAdapter () | |
| std::map< std::string, common::Parameter > | Connect () override |
| void | Disconnect () override |
| common::CheckResult | CheckConnection () const override |
| bool | IsConnected () const override |
| std::string | GetProtocol () const override |
| Get the protocol name used by this adapter. | |
| common::BasicParams | GetBasicParams () const override |
| Get basic camera parameters in standardized units. Adapters read their native parameters and convert to common units. | |
| void | ReceiveFrame (bool &received_frame, uint64_t max_size, std::span< uint8_t > &data, common::FrameInfo &frame_info) override |
| common::Parameter | Read (const std::string &name) override |
| Read a single parameter from the camera. | |
| std::vector< common::Parameter > | Read (const std::vector< std::string > &names) override |
| Read multiple parameters from the camera. | |
| void | Write (const common::Parameter ¶m) override |
| Write a single parameter to the camera. | |
| void | Write (const std::vector< common::Parameter > ¶ms) override |
| std::vector< common::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. | |
| common::AcquisitionState | GetAcquisitionState () const override |
| Get the current acquisition state. | |
| void | StartAcquisition (std::optional< int64_t > frame_count=std::nullopt) override |
| Start frame acquisition. | |
| void | StopAcquisition () override |
| Stop frame acquisition. | |
| void | addParam (const std::string &name, common::Parameter param) |
| bool | is_connected () const |
| bool | is_acquisition_running () const |
| const std::map< std::string, common::Parameter > & | get_written_params () const |
Public Member Functions inherited from camcom::common::AdapterBase | |
| AdapterBase () | |
| virtual | ~AdapterBase () |
| virtual void | Initialise (const ReceiveCfg &cfg) |
| virtual void | Write (const std::vector< Parameter > ¶meters)=0 |
| Write multiple parameters to the camera. | |
| 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} |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inlineoverridevirtual |
Implements camcom::common::AdapterBase.
|
inline |
|
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.
|
inline |
|
inline |
|
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.
|
inlineoverride |