Struct Dnum
Represents a rapid data of type Dnum.
Namespace: ABB.Robotics.Controllers.RapidDomain
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public struct Dnum : IRapidData, IConvertible
Constructors
View SourceDnum(double)
Initializes a new instance of the Dnum class with a specific value.
Declaration
public Dnum(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value |
Properties
View SourceEmpty
Gets an empty instance.
Declaration
public static Dnum Empty { get; }
Property Value
| Type | Description |
|---|---|
| Dnum | The empty instance. |
Value
Gets/Sets the value of the object.
Declaration
public double Value { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceFill(DataNode)
Fills the RapidData object from the specified parser root.
Declaration
public void Fill(DataNode root)
Parameters
| Type | Name | Description |
|---|---|---|
| DataNode | root | Root of data. |
Fill(string)
Fills the structure with the new value.
Declaration
public void Fill(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Value to fill structure with. |
FillFromDnum(double)
Fills the struct with a double value.
Declaration
[Obsolete("No longer supported")]
public void FillFromDnum(double newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| double | newValue | The new value stored by the struct. |
FillFromString(string)
Fills the struct with a valid rapid string representation.
Declaration
public void FillFromString(string newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | newValue | The new value stored by the struct. |
Exceptions
| Type | Condition |
|---|---|
| RapidDataFormatException | newValue does not represent the Dnum data type. |
GetDataType(Controller)
Gets the datatype object for this type from the supplied controller.
Declaration
public static RapidDataType GetDataType(Controller controller)
Parameters
| Type | Name | Description |
|---|---|---|
| Controller | controller | Controller containing the datatype. |
Returns
| Type | Description |
|---|---|
| RapidDataType | A valid datatype object if it exist on the controller. |
Parse(string)
Parses the string into a Dnum object.
Declaration
public static Dnum Parse(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Value to parse into object. |
Returns
| Type | Description |
|---|---|
| Dnum | The Dnum object. |
ToString()
Returns the string representation of the Dnum rapid data.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The string representation with the value of the Dnum rapid data. |
Overrides
ToStructure()
Converts the datastructure into a DataNode tree.
Declaration
public DataNode ToStructure()
Returns
| Type | Description |
|---|---|
| DataNode | The root of the corresponding data tree. |
TryParse(string, out Dnum)
Attempts to parse the string into object.
Declaration
public static bool TryParse(string value, out Dnum result)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Value to parse. |
| Dnum | result | The result of the parse operation. |
Returns
| Type | Description |
|---|---|
| bool | True if parse succeeded. |
Operators
View Sourceimplicit operator double(Dnum)
Converts a Dnum struct to a double.
Declaration
public static implicit operator double(Dnum f)
Parameters
| Type | Name | Description |
|---|---|---|
| Dnum | f | A Dnum struct reference. |
Returns
| Type | Description |
|---|---|
| double | The double value that is stored in the Dnum struct |