mrDarker
2025-08-06 c2da3f2d26079c9efba3961ef091a325d21d1c86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// MCpp_BoardImpl.h - MULTICAM C++ API - BoardImpl
#if !defined(__MCPP_BOARDIMPL_H__)
#define __MCPP_BOARDIMPL_H__
 
#include "MCpp_Board.h"
 
namespace Euresys
{
  namespace MultiCam
  {
    inline Board::Board(int Index)
    {
      WRAPPING_MEMBERS_INIT
 
      Handle = MC_BOARD + Index;
 
      // Make sure the handle is valid (i.e., this object corresponds to a MultiCam Board object)
      MCSTATUS status;
      int ix;
      status = McGetParamInt(Handle, MC_DriverIndex, &ix);
      if (status != MC_OK || ix != Index)
        ThrowMultiCamException(MC_NO_BOARD_FOUND);
    }
 
    inline Board::~Board()
    {
      WRAPPING_MEMBERS_UNINIT
    }
 
  }
}
 
#endif