Layout Class |
Namespace: OBCOM.NetClient
The Layout type exposes the following members.
Name | Description | |
---|---|---|
![]() | Layout |
Creates a new Layout instance.
|
![]() | Layout(String) |
Creates a new Layout with the given name.
|
Name | Description | |
---|---|---|
![]() | IsComplete |
Returns true if the Layout is complete.
|
![]() | Length |
Returns the sum of the sizes of all the fields of the Layout.
|
![]() | Name |
Returns the name of the Layout.
|
![]() | Signature |
Returns the signature (checksum) of the Layout.
|
Name | Description | |
---|---|---|
![]() | AddField |
Creates and appends a new LayoutField to the Layout.
|
![]() | Compile |
Compiles the supplied Layout specification.
|
![]() | CompileEcu |
Compiles the suplied ECUSER specification into a Layout. The {@code
specification} is composed of a sequence of three or more lines
separeted by a new-line character. The first of these lines specifies
the name of the Layout. The last line specifies the
signature of the Layout. The lines between the first and the last
specify the fields of the Layout.
|
![]() | Complete |
Completes the definition of the collection of fields of this Layout.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Exists |
Returns true if the field identified by fieldName exists in the Layout.
|
![]() | GetEnumerator |
Returns a read-only enumerator over the collection of fields in the
Layout.
|
![]() | GetField |
Returns the Layout field identified by the supplied fieldName.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString |
Creates and returns a string serialization of this Layout.
(Overrides ObjectToString.) |
The collection of fields of a Layout is defined using a specific sequence of method calls. First, a Layout is created, and its name defined, using the New(String) constructor. Then, the AddField(FieldType, String, Int32, Int32, String) method must be called for each Layout field. Finally, the Complete(String) method must be called to complete the definition of the collection.
Alternatively, a Layout can be created using the New() constructor and its other properties can be defined using the Compile(String) method.