Realistic 3D camera system
3D camera system components
error.hpp
Go to the documentation of this file.
1 //
2 // error.hpp
3 // ~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_ERROR_HPP
12 #define ASIO_ERROR_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include "asio/error_code.hpp"
20 #include "asio/system_error.hpp"
21 #if defined(ASIO_WINDOWS) \
22  || defined(__CYGWIN__) \
23  || defined(ASIO_WINDOWS_RUNTIME)
24 # include <winerror.h>
25 #else
26 # include <cerrno>
27 # include <netdb.h>
28 #endif
29 
30 #if defined(GENERATING_DOCUMENTATION)
31 # define ASIO_NATIVE_ERROR(e) implementation_defined
33 # define ASIO_SOCKET_ERROR(e) implementation_defined
35 # define ASIO_NETDB_ERROR(e) implementation_defined
37 # define ASIO_GETADDRINFO_ERROR(e) implementation_defined
39 # define ASIO_WIN_OR_POSIX(e_win, e_posix) implementation_defined
41 #elif defined(ASIO_WINDOWS_RUNTIME)
42 # define ASIO_NATIVE_ERROR(e) __HRESULT_FROM_WIN32(e)
43 # define ASIO_SOCKET_ERROR(e) __HRESULT_FROM_WIN32(WSA ## e)
44 # define ASIO_NETDB_ERROR(e) __HRESULT_FROM_WIN32(WSA ## e)
45 # define ASIO_GETADDRINFO_ERROR(e) __HRESULT_FROM_WIN32(WSA ## e)
46 # define ASIO_WIN_OR_POSIX(e_win, e_posix) e_win
47 #elif defined(ASIO_WINDOWS) || defined(__CYGWIN__)
48 # define ASIO_NATIVE_ERROR(e) e
49 # define ASIO_SOCKET_ERROR(e) WSA ## e
50 # define ASIO_NETDB_ERROR(e) WSA ## e
51 # define ASIO_GETADDRINFO_ERROR(e) WSA ## e
52 # define ASIO_WIN_OR_POSIX(e_win, e_posix) e_win
53 #else
54 # define ASIO_NATIVE_ERROR(e) e
55 # define ASIO_SOCKET_ERROR(e) e
56 # define ASIO_NETDB_ERROR(e) e
57 # define ASIO_GETADDRINFO_ERROR(e) e
58 # define ASIO_WIN_OR_POSIX(e_win, e_posix) e_posix
59 #endif
60 
62 
63 namespace asio {
64 namespace error {
65 
67 {
70 
73 
76 
79 
82 
85  ASIO_NATIVE_ERROR(ERROR_BROKEN_PIPE),
86  ASIO_NATIVE_ERROR(EPIPE)),
87 
90 
93 
96 
99 
102 
105 
108 
111 
114 
117 
120 
123 
126 
129 
132 
135 
138  ASIO_NATIVE_ERROR(ERROR_OUTOFMEMORY),
139  ASIO_NATIVE_ERROR(ENOMEM)),
140 
143  ASIO_NATIVE_ERROR(ERROR_ACCESS_DENIED),
144  ASIO_NATIVE_ERROR(EPERM)),
145 
148 
151  ASIO_NATIVE_ERROR(ERROR_BAD_UNIT),
152  ASIO_NATIVE_ERROR(ENODEV)),
153 
156 
159 
162  ASIO_NATIVE_ERROR(ERROR_OPERATION_ABORTED),
163  ASIO_NATIVE_ERROR(ECANCELED)),
164 
167 
170 
173 
176  ASIO_NATIVE_ERROR(ERROR_RETRY),
177  ASIO_NATIVE_ERROR(EAGAIN)),
178 
181 };
182 
184 {
186  host_not_found = ASIO_NETDB_ERROR(HOST_NOT_FOUND),
187 
190 
193 
196 };
197 
199 {
202  ASIO_NATIVE_ERROR(WSATYPE_NOT_FOUND),
203  ASIO_GETADDRINFO_ERROR(EAI_SERVICE)),
204 
207  ASIO_NATIVE_ERROR(WSAESOCKTNOSUPPORT),
208  ASIO_GETADDRINFO_ERROR(EAI_SOCKTYPE))
209 };
210 
212 {
215 
218 
221 
224 };
225 
227 {
228  return asio::system_category();
229 }
230 
231 #if !defined(ASIO_WINDOWS) && !defined(__CYGWIN__)
232 
233 extern ASIO_DECL
235 
236 extern ASIO_DECL
238 
239 #else // !defined(ASIO_WINDOWS) && !defined(__CYGWIN__)
240 
242 {
243  return get_system_category();
244 }
245 
247 {
248  return get_system_category();
249 }
250 
251 #endif // !defined(ASIO_WINDOWS) && !defined(__CYGWIN__)
252 
253 extern ASIO_DECL
255 
256 static const asio::error_category& system_category
258 static const asio::error_category& netdb_category
260 static const asio::error_category& addrinfo_category
262 static const asio::error_category& misc_category
264 
265 } // namespace error
266 } // namespace asio
267 
268 #if defined(ASIO_HAS_STD_SYSTEM_ERROR)
269 namespace std {
270 
271 template<> struct is_error_code_enum<asio::error::basic_errors>
272 {
273  static const bool value = true;
274 };
275 
276 template<> struct is_error_code_enum<asio::error::netdb_errors>
277 {
278  static const bool value = true;
279 };
280 
281 template<> struct is_error_code_enum<asio::error::addrinfo_errors>
282 {
283  static const bool value = true;
284 };
285 
286 template<> struct is_error_code_enum<asio::error::misc_errors>
287 {
288  static const bool value = true;
289 };
290 
291 } // namespace std
292 #endif // defined(ASIO_HAS_STD_SYSTEM_ERROR)
293 
294 namespace asio {
295 namespace error {
296 
298 {
299  return asio::error_code(
300  static_cast<int>(e), get_system_category());
301 }
302 
304 {
305  return asio::error_code(
306  static_cast<int>(e), get_netdb_category());
307 }
308 
310 {
311  return asio::error_code(
312  static_cast<int>(e), get_addrinfo_category());
313 }
314 
316 {
317  return asio::error_code(
318  static_cast<int>(e), get_misc_category());
319 }
320 
321 } // namespace error
322 } // namespace asio
323 
325 
326 #undef ASIO_NATIVE_ERROR
327 #undef ASIO_SOCKET_ERROR
328 #undef ASIO_NETDB_ERROR
329 #undef ASIO_GETADDRINFO_ERROR
330 #undef ASIO_WIN_OR_POSIX
331 
332 #if defined(ASIO_HEADER_ONLY)
333 # include "asio/impl/error.ipp"
334 #endif // defined(ASIO_HEADER_ONLY)
335 
336 #endif // ASIO_ERROR_HPP
Network is down.
Definition: error.hpp:122
Permission denied.
Definition: error.hpp:69
Address already in use.
Definition: error.hpp:75
Operation cancelled.
Definition: error.hpp:161
The service is not supported for the given socket type.
Definition: error.hpp:201
pylon Camera Software Suite for Linux for Use with Basler Gigabit the pylon Viewer and the IP Configurator applications might not be available System I340 and I350 series Although the pylon software will work with any GigE network we would recommend to use one of these adapters USB For U3V devices a USB3 capable USB controller is necessary For best performance and stability we highly recommend a kernel the following settings should be i e
The name was too long.
Definition: error.hpp:119
#define ASIO_GETADDRINFO_ERROR(e)
Definition: error.hpp:57
STL namespace.
Too many open files.
Definition: error.hpp:131
The socket is marked non-blocking and the requested operation would block.
Definition: error.hpp:180
Bad address.
Definition: error.hpp:101
#define ASIO_NETDB_ERROR(e)
Definition: error.hpp:56
Operation not permitted.
Definition: error.hpp:142
Invalid argument.
Definition: error.hpp:113
End of file or stream.
Definition: error.hpp:217
Operation now in progress.
Definition: error.hpp:107
Resource temporarily unavailable.
Definition: error.hpp:175
The descriptor cannot fit into the select system call&#39;s fd_set.
Definition: error.hpp:223
#define ASIO_SOCKET_ERROR(e)
Definition: error.hpp:55
Element not found.
Definition: error.hpp:220
The query is valid but does not have associated address data.
Definition: error.hpp:192
The socket type is not supported.
Definition: error.hpp:206
Host not found (authoritative).
Definition: error.hpp:186
Base class for all error categories.
Definition: error_code.hpp:41
Connection refused.
Definition: error.hpp:92
Message too long.
Definition: error.hpp:116
const asio::error_category & get_system_category()
Definition: error.hpp:226
#define ASIO_WIN_OR_POSIX(e_win, e_posix)
Definition: error.hpp:58
Bad file descriptor.
Definition: error.hpp:98
Class to represent an error code value.
Definition: error_code.hpp:80
#define ASIO_DECL
Definition: config.hpp:43
ASIO_DECL const asio::error_category & get_misc_category()
Definition: error.ipp:117
Connection timed out.
Definition: error.hpp:172
Network is unreachable.
Definition: error.hpp:128
A non-recoverable error occurred.
Definition: error.hpp:195
No such device.
Definition: error.hpp:150
Operation already in progress.
Definition: error.hpp:81
Host not found (non-authoritative).
Definition: error.hpp:189
#define ASIO_NATIVE_ERROR(e)
Definition: error.hpp:54
Network dropped connection on reset.
Definition: error.hpp:125
ASIO_DECL const asio::error_category & get_netdb_category()
Definition: error.ipp:55
No buffer space available.
Definition: error.hpp:134
asio::error_code make_error_code(basic_errors e)
Definition: error.hpp:297
Already open.
Definition: error.hpp:214
Cannot allocate memory.
Definition: error.hpp:137
Transport endpoint is not connected.
Definition: error.hpp:155
A connection has been aborted.
Definition: error.hpp:89
Broken pipe.
Definition: error.hpp:84
ASIO_DECL const error_category & system_category()
Returns the error category used for the system errors produced by asio.
Definition: error_code.ipp:118
Protocol not available.
Definition: error.hpp:147
ASIO_DECL const asio::error_category & get_addrinfo_category()
Definition: error.ipp:83
Socket operation on non-socket.
Definition: error.hpp:158
Connection reset by peer.
Definition: error.hpp:95
Address family not supported by protocol.
Definition: error.hpp:72
Cannot send after transport endpoint shutdown.
Definition: error.hpp:169
No route to host.
Definition: error.hpp:104
Transport endpoint is already connected.
Definition: error.hpp:78
Interrupted system call.
Definition: error.hpp:110
Operation not supported.
Definition: error.hpp:166