NetOceanDirect  3.1.1
OceanDirect .NET API
LightSource.h
1 #pragma once
2 #include "ManagedObject.h"
3 #include "api/advanced/LightSourceAPI.h"
4 using oceandirect::api::LightSourceAPI;
5 
6 namespace NetOceanDirect {
7 
8  public ref class LightSource : public ManagedObject<LightSourceAPI>
9  {
10  protected:
11  LightSource();
12  public:
13  LightSource(LightSourceAPI* instance);
14 
15  virtual ~LightSource() {};
16  static LightSource^ getInstance();
17 
29  int getCount(long deviceID, int% errorCode);
44  bool hasEnable(long deviceID, int% errorCode, int lightSourceIndex);
59  bool isEnabled(long deviceID, int% errorCode, int lightSourceIndex);
71  void setEnable(long deviceID, int% errorCode, int lightSourceIndex, bool enable);
72 
81  int setLampEnable(long deviceID, int% errorCode, bool state);
82 
83  protected:
84  static LightSource^ lsource;
85 
86  };
87 }
Definition: LightSource.h:9
void setEnable(long deviceID, int% errorCode, int lightSourceIndex, bool enable)
Definition: LightSource.cpp:42
bool hasEnable(long deviceID, int% errorCode, int lightSourceIndex)
Definition: LightSource.cpp:28
bool isEnabled(long deviceID, int% errorCode, int lightSourceIndex)
Definition: LightSource.cpp:35
int getCount(long deviceID, int% errorCode)
Definition: LightSource.cpp:21
int setLampEnable(long deviceID, int% errorCode, bool state)
Definition: LightSource.cpp:48
Definition: ManagedObject.h:16