NetOceanDirect
3.1.3
OceanDirect .NET API
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
os-support
windows
VisualStudio2017
NetOceanDirect
Devices.h
Go to the documentation of this file.
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
ManagedObject.h
NetOceanDirect::Devices
Definition
Devices.h:14
NetOceanDirect::Devices::InUse
property bool InUse
Definition
Devices.h:31
NetOceanDirect::Devices::Id
property int Id
Definition
Devices.h:21
NetOceanDirect::Devices::~Devices
virtual ~Devices()
Definition
Devices.h:18
NetOceanDirect::Devices::Name
property String Name
Definition
Devices.h:26
NetOceanDirect::Devices::SpectrumLen
property int SpectrumLen
Definition
Devices.h:51
NetOceanDirect::Devices::Btype
property BusType Btype
Definition
Devices.h:36
NetOceanDirect::Devices::Devices
Devices()
Definition
Devices.cpp:5
NetOceanDirect
Definition
Advanced.h:6
NetOceanDirect::BusType
BusType
Definition
Devices.h:7
NetOceanDirect::BusType::RS232
@ RS232
NetOceanDirect::BusType::USB
@ USB
NetOceanDirect::BusType::ETH
@ ETH
stdafx.h
Generated on Sun Dec 15 2024 01:27:54 for NetOceanDirect by
1.12.0