Logo
Programmer's Guide Baumer GAPI SDK Reference v2.10.0
bgapi2_def.h
1 /* Copyright 2014-2018 Baumer Optronic */
2 
3 #ifndef TLCONSUMER_BGAPI2_GENICAM_BGAPI2_DEF_H_
4 #define TLCONSUMER_BGAPI2_GENICAM_BGAPI2_DEF_H_
5 
6 #include "./bgapi2_types.h"
7 
8 class CEventPnPObj;
9 class CEventDeviceEventObj;
10 
11 namespace BGAPI2 {
12 
13 class BGAPI2_DECL String {
14  public:
15  String();
16  String(const char * text);
17  String(const char * text, int length);
18  String(const char & ch, int length);
19  String(const String & Obj);
20  String(const char & ch);
21  ~String();
22 
23  operator char *();
24  operator const char *();
25  bool operator == (const char * text);
26  bool operator == (String & ExStr) const; // NOLINT(runtime/references)
27  bool operator != (const char * text);
28  bool operator != (const String & ExStr);
29  bool operator < (const String & ExStr) const;
30  const String & operator = (char &); // NOLINT(runtime/references)
31  const String & operator = (const char *);
32  const String & operator = (const String & ExStr);
33 
34 #ifndef _WIN32
35  friend std::ostream& operator << (std::ostream& out, BGAPI2::String const &ExStr) BGAPI2_DECL;
36 #endif
37  const char* get() const;
38  // const char* get();
39 
40  void set(const char * text);
41  int size();
42 
43  private:
44  void* data;
45 };
46 
47 #ifndef _WIN32
48 std::ostream& operator << (std::ostream& out, BGAPI2::String const &ExStr) BGAPI2_DECL;
49 #endif
50 
51 struct _sSystemListData;
52 typedef struct BGAPI2::_sSystemListData tSystemListData, *ptSystemListData;
53 
54 struct _sInterfaceListData;
55 typedef struct BGAPI2::_sInterfaceListData tInterfaceListData, *ptInterfaceListData;
56 
57 struct _sSystemData;
58 typedef struct BGAPI2::_sSystemData tSystemData, *ptSystemData;
59 
60 struct _sDeviceListData;
61 typedef struct BGAPI2::_sDeviceListData tDeviceListData, *ptDeviceListData;
62 
63 struct _sDataStreamListData;
64 typedef struct BGAPI2::_sDataStreamListData tDataStreamListData, *ptDataStreamListData;
65 
66 struct _sBufferListData;
67 typedef struct BGAPI2::_sBufferListData tBufferListData, *ptBufferListData;
68 
69 struct _sBufferData;
70 typedef struct BGAPI2::_sBufferData tBufferData, *ptBufferData;
71 
72 struct _sDataStreamData;
73 typedef struct BGAPI2::_sDataStreamData tDataStreamData, *ptDataStreamData;
74 
75 struct _sDeviceData;
76 typedef struct BGAPI2::_sDeviceData tDeviceData, *ptDeviceData;
77 
78 struct _sInterfaceData;
79 typedef struct BGAPI2::_sInterfaceData tInterfaceData, *ptInterfaceData;
80 
81 struct _sImageData;
82 typedef struct BGAPI2::_sImageData tImageData, *ptImageData;
83 
84 struct _sImageProcessorData;
85 typedef struct BGAPI2::_sImageProcessorData tImageProcessorData, *ptImageProcessorData;
86 
87 struct _sBrightnessAutoData;
88 typedef struct BGAPI2::_sBrightnessAutoData tBrightnessAutoData, *ptBrightnessAutoData;
89 
90 class System;
91 class BGAPI2_DECL _pairs {
92  public:
93  String first;
94  System* second;
95 };
96 
97 class Interface;
98 class BGAPI2_DECL _pairi {
99  public:
100  String first;
101  Interface* second;
102 };
103 
104 class Device;
105 class BGAPI2_DECL _paird {
106  public:
107  String first;
108  Device* second;
109 };
110 
111 class DataStream;
112 class BGAPI2_DECL _pairds {
113  public:
114  String first;
115  DataStream* second;
116 };
117 
118 class Buffer;
119 class BGAPI2_DECL _pairb {
120  public:
121  String first;
122  Buffer* second;
123 };
124 
125 #ifdef _WIN32
126 #pragma pack(push, 8)
127 #endif
128 
129 class Node;
130 class BGAPI2_DECL _pairn {
131  public:
132  bo_int64 first;
133  Node* second;
134 };
135 
136 class BGAPI2_DECL _pairnm {
137  public:
138  String first;
139  _pairn second;
140 };
141 
142 #ifdef _WIN32
143 #pragma pack(pop)
144 #endif
145 
146 #ifdef _WIN32
147 #pragma pack(push, 8)
148 #endif
149  typedef struct {
150  bo_ushort *pcRed; // pointer to hist array offered by user, can be zero
151  bo_ushort *pcGreen; // pointer to hist array offered by user, can be zero
152  bo_ushort *pcBlue; // pointer to hist array offered by user, can be zero
153  bo_ushort *pcLuma; // pointer to hist array offered by user, can be zero
154  int length;
155  int * pSizeFilled; // pointer to fill info for user
156  bool ThresEnable;
157  int ThresMin;
158  int ThresMax;
159  int* red_under;
160  int* red_over;
161  int* green_under;
162  int* green_over;
163  int* blue_under;
164  int* blue_over;
165  } bo_tHistRecords;
166 
172  typedef struct {
173  bo_ushort rgbBlue;
174  bo_ushort rgbGreen;
175  bo_ushort rgbRed;
176  bo_ushort rgbReserved;
177  } bo_tRGB16QUAD;
178 #ifdef _WIN32
179 #pragma pack(pop)
180 #endif
181 
182 } // namespace BGAPI2
183 
184 #endif // TLCONSUMER_BGAPI2_GENICAM_BGAPI2_DEF_H_
The class Interface represents a physical interface, e.g. GEV or a logical interface, such as USB and belongs to the BGAPI2 main classes.
This class realizes the data access to the memory. It contains information about the received data (e...
The class Device is used to retrieve information (e.g. model, manufacturer, access modes) of the devi...
The class Node represent one feature from the provided node list based on the underlying XML definiti...
The global namespace of Baumer GAPI SDK 2.
Definition: bgapi2_def.h:11
The class System is the abstraction of a Producer and belongs to the BGAPI2 main classes.
This class represents a physical data stream from the device and it is responsible for the buffer han...
bgapi: BGAPI::Camera Class Reference

Jan, 14 2020
Baumer Optronic GmbH, Badstrasse 30, 01454 D-Radeberg, Tel:+49-3528-4386-0, Fax:+49-3528-4386-86, Email:support.cameras@baumer.com