NetOceanDirectLighthouse  3.1.1
OceanDirect Lighthouse .NET API
NetLighthouseLamp.h
1 #pragma once
2 #include "stdafx.h"
3 #include "ManagedObject.h"
4 
5 using oceandirect::api::LHLampAPI;
6 using NetOceanDirect::ManagedObject;
7 using NetOceanDirect::MemoryCleanup;
8 
9 namespace NetLighthouse {
10  // force the instantiation here...otherwise we get build errors
11  typedef ManagedObject<LHLampAPI, MemoryCleanup::noDeletion> LampBase;
12 
13  public ref class NetLighthouseLamp :
14  public LampBase {
15  protected:
17  public:
18  virtual ~NetLighthouseLamp() {};
19  static NetLighthouseLamp^ getInstance();
20 
29  virtual void setLampState(unsigned int deviceID, int %errorCode, net_lh_enable_state_t state);
30 
38  virtual net_lh_enable_state_t getLampState(unsigned int deviceID, int %errorCode);
39 
40  protected:
41  static NetLighthouseLamp^ lamp;
42 
43  };
44 }
Definition: NetLighthouseLamp.h:14
virtual void setLampState(unsigned int deviceID, int %errorCode, net_lh_enable_state_t state)
Definition: NetLighthouseLamp.cpp:18
virtual net_lh_enable_state_t getLampState(unsigned int deviceID, int %errorCode)
Definition: NetLighthouseLamp.cpp:23