Base class of all streams.
More...
#include <cvb/driver/stream_base.hpp>
Inherits enable_shared_from_this< StreamBase >.
Inherited by CompositeStreamBase, and Stream.
|
DevicePtr | Parent () const noexcept |
| Gets the parent device of this stream.
|
|
virtual Cvb::Driver::AcquisitionInterface | AcquisitionInterface () const noexcept=0 |
| Gets the interface of this implementation.
|
|
virtual void | Start ()=0 |
| Starts the acquisition.
|
|
virtual void | Stop ()=0 |
| Stops the acquisition.
|
|
virtual bool | TryStop () noexcept=0 |
| Stops the acquisition.
|
|
virtual void | Abort ()=0 |
| Stops the acquisition of images immediately.
|
|
virtual bool | TryAbort () noexcept=0 |
| Stops the acquisition of images immediately.
|
|
virtual bool | IsIndexed () const noexcept=0 |
| Gets whether this stream is an indexed stream.
|
|
Base class of all streams.
◆ Abort()
Stops the acquisition of images immediately.
- Exceptions
-
This stops the acquisition as fast as possible interrupting the ongoing operation. This might result in partially acquired images. The acquisition is stopped in the device first, then the engine on the host is stopped.
If the underlying driver does not support this, this call behaves as if Stop() had been called.
◆ AcquisitionInterface()
Gets the interface of this implementation.
- Returns
- The current acquisition interface.
- Exceptions
-
Does | not throw any exception. |
◆ IsIndexed()
virtual bool IsIndexed |
( |
| ) |
const |
|
pure virtualnoexcept |
Gets whether this stream is an indexed stream.
- Returns
- True if indexed, false otherwise.
- Exceptions
-
Does | not throw any exception. |
- See also
- IndexedStream
◆ Parent()
Gets the parent device of this stream.
- Returns
- The parent device pointer, or a null pointer if disconnected.
- Exceptions
-
Does | not throw any exception. |
◆ Start()
Starts the acquisition.
- Exceptions
-
The acquisition engine is started in on the host first, then the stream on the device is started.
◆ Stop()
Stops the acquisition.
- Exceptions
-
This stops the acquisition gracefully letting the ongoing operation finish. The acquisition is stopped in the device first, then the engine on the host is stopped. The disadvantage may be that this call lasts until the timeout time of the last Wait() call.
◆ TryAbort()
virtual bool TryAbort |
( |
| ) |
|
|
pure virtualnoexcept |
Stops the acquisition of images immediately.
- Returns
- True if successfully stopped, false on error.
- Exceptions
-
Does | not throw any exception. |
Same as Abort(), but does not throw.
◆ TryStop()
Stops the acquisition.
- Returns
- True if successfully stopped, false on error.
- Exceptions
-
Does | not throw any exception. |
Same as Stop(), but does not throw.