LWQ
2025-08-13 be72a344954f46a40c96848071a10996fc4bf030
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
34
35
36
37
38
39
40
41
// MCpp_ExceptionImpl.h - MULTICAM C++ API - ExceptionImpl
#if !defined(__MCPP_EXCEPTIONIMPL_H__)
#define __MCPP_EXCEPTIONIMPL_H__
 
#include <cstring>
#include "MCpp_Exception.h"
 
namespace Euresys
{
  namespace MultiCam
  {
    inline Exception::Exception(INT32 anError, const char *desc)
    {
      Error = anError ;
      strncpy(McDescription, desc, MCPP_MAX_EXCEPTION_DESCRIPTION_SIZE);
    }
 
    inline Exception::Exception(Exception &e)
    {
      Error = e.Error ;
      strncpy(McDescription, e.What(), MCPP_MAX_EXCEPTION_DESCRIPTION_SIZE);
    }
 
    inline Exception& Exception::operator=(Exception& e) 
    { 
      Error = e.Error ;
      strncpy(McDescription, e.What(), MCPP_MAX_EXCEPTION_DESCRIPTION_SIZE);
      return *this; 
    }
 
    inline Exception::~Exception()
    {
    }
 
    inline const char *Exception::What()
    {
      return McDescription;
    }
  }
}
#endif