NetOceanDirect  2.4.0
OceanDirect .NET API
Devices.h
1 #pragma
2 #include "stdafx.h"
3 #include "ManagedObject.h"
4 
5 
6 namespace NetOceanDirect {
7  public enum class BusType {
8  USB,
9  ETH,
10  RS232
11  };
12 
13  public ref class Devices
14  {
15 
16  public:
17  Devices();
18  virtual ~Devices() {}
19  !Devices() {}
20 
21  property int Id {
22  int get() { return id; }
23  void set(int val) { id = val; }
24  };
25 
26  property String ^Name {
27  String^ get() { return name; }
28  void set(String ^n) { name = n; }
29  };
30 
31  property bool InUse {
32  bool get() { return in_use; }
33  void set(bool val) { in_use = val; }
34  };
35 
36  property BusType Btype {
37  BusType get() { return type; }
38  void set(BusType bt) { type = bt; }
39  };
40 
41  //property int Port {
42  // int get() { return port; }
43  // void set(int val) { port = val; }
44  //};
45 
46  //property String ^IpAddress {
47  // String^ get() { return ipaddr; }
48  // void set(String ^ip) { ipaddr = ip; }
49  //};
50 
51  property int SpectrumLen {
52  int get() { return spectrumLength; }
53  void set(int val) { spectrumLength = val; }
54  };
55 
56  private:
57  int id, port, spectrumLength;
58  String^ name;
59  String^ ipaddr;
60  bool in_use;
61  BusType type;
62 
63  };
64 }
65 
Definition: Devices.h:14