AncillaryData.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: AncillaryData.h
10 
11  Description: Definition of class AVT::VmbAPI::AncillaryData.
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_ANCILLARYDATA_H
29 #define AVT_VMBAPI_ANCILLARYDATA_H
30 
34 
35 namespace AVT {
36 namespace VmbAPI {
37 
39 {
40  public:
41  AncillaryData( VmbFrame_t *pFrame );
43 
44  //
45  // Method: Open()
46  //
47  // Purpose: Opens the ancillary data to allow access to the elements of the ancillary data via feature access.
48  //
49  // Returns:
50  //
51  // - VmbErrorSuccess: If no error
52  // - VmbErrorApiNotStarted: VmbStartup() was not called before the current command
53  //
54  // Details: This function can only succeed if the given frame has been filled by the API.
55  //
56  IMEXPORT VmbErrorType Open();
57 
58  //
59  // Method: Close()
60  //
61  // Purpose: Closes the ancillary data inside a frame.
62  //
63  // Returns:
64  //
65  // - VmbErrorSuccess: If no error
66  // - VmbErrorApiNotStarted: VmbStartup() was not called before the current command
67  // - VmbErrorBadHandle: The given handle is not valid
68  //
69  // Details: After reading the ancillary data and before re-queuing the frame, ancillary data
70  // must be closed.
71  //
72  IMEXPORT VmbError_t Close();
73 
74  //
75  // Method: GetBuffer()
76  //
77  // Purpose: Returns the underlying buffer
78  //
79  // Parameters: [out] VmbUchar_t*& pBuffer A pointer to the buffer
80  //
81  // Returns:
82  //
83  // - VmbErrorSuccess: If no error
84  //
85  IMEXPORT VmbErrorType GetBuffer( VmbUchar_t* &pBuffer );
86 
87  //
88  // Method: GetBuffer()
89  //
90  // Purpose: Returns the underlying buffer
91  //
92  // Parameters: [out] const VmbUchar_t*& pBuffer A pointer to the buffer
93  //
94  // Returns:
95  //
96  // - VmbErrorSuccess: If no error
97  //
98  IMEXPORT VmbErrorType GetBuffer( const VmbUchar_t* &pBuffer ) const;
99 
100  //
101  // Method: GetSize()
102  //
103  // Purpose: Returns the size of the underlying buffer
104  //
105  // Parameters: [out] VmbUint32_t& size The size of the buffer
106  //
107  // Returns:
108  //
109  // - VmbErrorSuccess: If no error
110  //
111  IMEXPORT VmbErrorType GetSize( VmbUint32_t &size ) const;
112 
113  private:
114  struct Impl;
115  Impl *m_pImpl;
116 
117  // No default ctor
118  AncillaryData();
119  // No copy ctor
120  AncillaryData( const AncillaryData& );
121  // No assignment operator
123 };
124 
125 }} // namespace AVT::VmbAPI
126 
127 #endif
VmbInt32_t VmbError_t
IMEXPORT VmbErrorType GetBuffer(VmbUchar_t *&pBuffer)
IMEXPORT VmbErrorType Open()
IMEXPORT VmbErrorType GetSize(VmbUint32_t &size) const
VmbErrorType
IMEXPORT VmbError_t Close()
unsigned char VmbUchar_t
unsigned int VmbUint32_t
AncillaryData & operator=(const AncillaryData &)


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