-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNrRfmxAttributes.cs
36 lines (31 loc) · 1.26 KB
/
NrRfmxAttributes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using NationalInstruments.RFmx.NRMX;
namespace NationalInstruments.Utilities.SignalCreator.Plugins.NrPlugin
{
using Serialization;
/// <summary>
/// Defines custom behavior for using the selector string when the property value is applied
/// to the RFmx signal.
/// </summary>
internal enum RfmxNrSelectorStringType
{
/// <summary>Specifies that the input selector string should be left as is.</summary>
Default,
/// <summary>Specifies that the subblock string should be parsed out of the selector string.</summary>
Subblock,
/// <summary>Specifies that the selector string should be set to an empty value.</summary>
None
}
internal sealed class RFmxNrSerializablePropertyAttribute : RFmxSerializablePropertyAttribute
{
public RfmxNrSelectorStringType SelectorStringType = RfmxNrSelectorStringType.Default;
public RFmxNrSerializablePropertyAttribute(RFmxNRMXPropertyId property)
: base((int)property)
{
}
public RFmxNrSerializablePropertyAttribute(RFmxNRMXPropertyId property, RfmxNrSelectorStringType selectorStringType)
: base((int)property)
{
SelectorStringType = selectorStringType;
}
}
}