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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// MCpp_Configuration.h - MULTICAM C++ API - Configuration
#if !defined(__MCPP_CONFIGURATION_H__)
#define __MCPP_CONFIGURATION_H__
 
namespace Euresys
{
  namespace MultiCam
  {
    // ********************************************************************************************
    // Configuration class
    // -------------------
    class ConfigurationImpl : public MultiCamObject
    {
    public:
      ConfigurationImpl();
      ~ConfigurationImpl();
    };
 
    ConfigurationImpl* GetConfigurationImpl();
 
    class Configuration
    {
    public:
      void SetParam(MCPARAMID param, int value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(MCPARAMID param, unsigned int value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(MCPARAMID param, INT64 value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(MCPARAMID param, const char *value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(MCPARAMID param, double value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(MCPARAMID param, Surface &value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(MCPARAMID param, void *value) { GetConfigurationImpl()->SetParam(param, value); }
 
      void SetParam(const char *param, int value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(const char *param, unsigned int value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(const char *param, INT64 value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(const char *param, const char *value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(const char *param, double value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(const char *param, Surface &value) { GetConfigurationImpl()->SetParam(param, value); }
      void SetParam(const char *param, void *value) { GetConfigurationImpl()->SetParam(param, value); }
 
      void GetParam(MCPARAMID param, int &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(MCPARAMID param, unsigned int &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(MCPARAMID param, INT64 &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(MCPARAMID param, char *value, int maxLength) { GetConfigurationImpl()->GetParam(param, value, maxLength); }
      void GetParam(MCPARAMID param, double &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(MCPARAMID param, Surface *&value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(MCPARAMID param, void *&value) { GetConfigurationImpl()->GetParam(param, value); }
 
      void GetParam(const char *param, int &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(const char *param, unsigned int &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(const char *param, INT64 &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(const char *param, char *value, int maxLength) { GetConfigurationImpl()->GetParam(param, value, maxLength); }
      void GetParam(const char *param, double &value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(const char *param, Surface *&value) { GetConfigurationImpl()->GetParam(param, value); }
      void GetParam(const char *param, void *&value) { GetConfigurationImpl()->GetParam(param, value); }
 
      MCHANDLE GetHandle() { return GetConfigurationImpl()->GetHandle(); }
    };
  }
}
 
#endif