FrameHandler.h
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved.
3 
4  Redistribution of this file, in original or modified form, without
5  prior written consent of Allied Vision Technologies is prohibited.
6 
7 -------------------------------------------------------------------------------
8 
9  File: FrameHandler.h
10 
11  Description: Definition of class AVT::VmbAPI::FrameHandler.
12 
13 -------------------------------------------------------------------------------
14 
15  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
16  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
17  NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18  DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
23  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 
26 =============================================================================*/
27 
28 #ifndef AVT_VMBAPI_FRAMEHANDLER_H
29 #define AVT_VMBAPI_FRAMEHANDLER_H
30 
31 #include <vector>
32 
36 #include <VimbaCPP/Include/Frame.h>
39 
40 namespace AVT {
41 namespace VmbAPI {
42 
43 enum { FRAME_HDL=0, };
44 
46 {
47  public:
48  static void VMB_CALL FrameDoneCallback( const VmbHandle_t handle, VmbFrame_t *pFrame );
49 
50  FrameHandler( FramePtr pFrame, IFrameObserverPtr pFrameObserver );
51 
52  FramePtr GetFrame() const;
53 
54  bool EnterWriteLock( bool bExclusive = false );
55  void ExitWriteLock();
56  bool EnterReadLock();
57  void ExitReadLock();
58 
59  private:
60  IFrameObserverPtr m_pObserver;
63  MutexPtr m_pMutex;
64 };
65 
66 typedef std::vector<FrameHandlerPtr> FrameHandlerPtrVector;
67 
68 }} // namespace AVT::VmbAPI
69 
70 #endif
NetPointer< Frame, AVT::VmbAPINET::Frame > FramePtr
IFrameObserverPtr m_pObserver
Definition: FrameHandler.h:60
static void VMB_CALL FrameDoneCallback(const VmbHandle_t handle, VmbFrame_t *pFrame)
void * VmbHandle_t
bool EnterWriteLock(bool bExclusive=false)
FramePtr GetFrame() const
std::vector< FrameHandlerPtr > FrameHandlerPtrVector
Definition: FrameHandler.h:66
FrameHandler(FramePtr pFrame, IFrameObserverPtr pFrameObserver)
ConditionHelper m_conditionHelper
Definition: FrameHandler.h:62


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Wed Jun 5 2019 22:22:40