NetOceanDirect 3.1.3
OceanDirect .NET API
Devices.h
Go to the documentation of this file.
1#pragma
2#include "stdafx.h"
3#include "ManagedObject.h"
4
5
6namespace 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
property bool InUse
Definition Devices.h:31
property int Id
Definition Devices.h:21
virtual ~Devices()
Definition Devices.h:18
property String Name
Definition Devices.h:26
property int SpectrumLen
Definition Devices.h:51
property BusType Btype
Definition Devices.h:36
Devices()
Definition Devices.cpp:5
Definition Advanced.h:6
BusType
Definition Devices.h:7