|
UM .NET API
6.17
|
LBMSDMFields is a utility class for LBMSDMessage to collect a set of fields. The intent of separating the set of fields from LBMSDMessage is to encourage reuse of the field set. More...
Public Member Functions | |
| LBMSDMFields () | |
| Constructor for an empty field set. | |
| LBMSDMFields (LBMSDMFieldsAttribute user_attr) | |
| Constructor for an empty field set. More... | |
| virtual void | add (LBMSDMField newfield) |
| Add an SDM field to the field set. More... | |
| virtual void | set (LBMSDMField field) |
| Overwrite/set an existing field based on the name. More... | |
| virtual void | set (LBMSDMField field, int idx) |
| Overwrite/set an existing field based on the field set index. More... | |
| virtual void | set (LBMSDMField newfield, int fieldidx, int arrayidx) |
| Overwrite/set an existing field based on the field set index and array element. More... | |
| virtual int | length () |
| Get the number of fields in the field set. More... | |
| virtual LBMSDMField | get (int pos) |
| Get a field by the index. More... | |
| virtual LBMSDMFieldsAttribute | get_attr () |
| Get the field set attributes are associated with this message A copy is returned. More... | |
| virtual void | remove (int pos) |
| Remove a field by specifying the index. More... | |
| virtual void | remove (System.String name) |
| Remove a field by specifying the name. More... | |
| virtual System.Collections.IEnumerator | iterator () |
| Get the default iterator for this field set. More... | |
| override System.String | ToString () |
| Dump the string representation of this field set which includes the fields. More... | |
| virtual System.String | toDbgString () |
| Dump the internal representation of this field set which includes the fields. More... | |
| virtual new System.Object | Clone () |
| Get a copy of this object. More... | |
| virtual LBMSDMField | locate (System.String name) |
| Get a field in the field set based on the name. Note calling locate() many times on the same message is not optimal. When processing multiple fields in a message, looping through by index and comparing the name may be more efficient, eliminating unnecessary string compares. More... | |
| virtual void | set_debug_level (int level) |
| Set the debug level for processing this SDM message. Currently all debugs go to standard out. More... | |
| virtual void | log (System.String s) |
| Log an event. If debug level is set greater than 0, output to stderr. More... | |
Public Attributes | |
| const int | DEBUG_BASIC = 1 |
| Debug flag for basic debug output. | |
| const int | DEBUG_VERBOSE_PARSING = 2 |
| Debug flag for verbose message parsing output. | |
LBMSDMFields is a utility class for LBMSDMessage to collect a set of fields. The intent of separating the set of fields from LBMSDMessage is to encourage reuse of the field set.
| com.latencybusters.lbm.sdm.LBMSDMFields.LBMSDMFields | ( | LBMSDMFieldsAttribute | user_attr | ) |
Constructor for an empty field set.
| user_attr | User attribute object setting options for this field set |
References com.latencybusters.lbm.sdm.LBMSDMFieldsAttribute.Clone().
|
virtual |
Add an SDM field to the field set.
same name as a field already in the field set
LBMSDMDuplicateFieldException when adding a field with the
LBMSDMException when an unexpected error occurs within LBMSDM
| newfield | The new field to be added |
References com.latencybusters.lbm.sdm.LBMSDMField.get_name().
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.add().
|
virtual |
Get a copy of this object.
References com.latencybusters.lbm.sdm.LBMSDMFields.Clone().
Referenced by com.latencybusters.lbm.sdm.LBMSDMFields.Clone(), and com.latencybusters.lbm.sdm.LBMSDMessage.Clone().
|
virtual |
Get a field by the index.
| pos | The index of the field required |
Referenced by com.latencybusters.lbm.sdm.LBMSDMFieldIterator.get(), and com.latencybusters.lbm.sdm.LBMSDMessage.get().
|
virtual |
Get the field set attributes are associated with this message A copy is returned.
References com.latencybusters.lbm.sdm.LBMSDMFieldsAttribute.Clone().
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.get_attr().
|
virtual |
Get the default iterator for this field set.
|
virtual |
Get the number of fields in the field set.
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.count(), com.latencybusters.lbm.sdm.LBMSDMessage.data(), and com.latencybusters.lbm.sdm.LBMSDMFieldIterator.MoveNext().
|
virtual |
Get a field in the field set based on the name. Note calling locate() many times on the same message is not optimal. When processing multiple fields in a message, looping through by index and comparing the name may be more efficient, eliminating unnecessary string compares.
| name | The name of the field to be searched for. |
References com.latencybusters.lbm.sdm.LBMSDMFieldIterator.Current, com.latencybusters.lbm.sdm.LBMSDMField.get_name(), and com.latencybusters.lbm.sdm.LBMSDMFieldIterator.MoveNext().
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.locate().
|
virtualinherited |
Log an event. If debug level is set greater than 0, output to stderr.
| s | String containing the event to log |
|
virtual |
Remove a field by specifying the index.
| pos | The index of the field |
Referenced by com.latencybusters.lbm.sdm.LBMSDMFieldIterator.remove(), and com.latencybusters.lbm.sdm.LBMSDMessage.remove().
|
virtual |
Remove a field by specifying the name.
| name | The field name to be removed |
|
virtual |
Overwrite/set an existing field based on the name.
LBMSDMAddingFieldException when the field doesn't exist
| field | The new field value |
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.set(), and com.latencybusters.lbm.sdm.LBMSDMFieldIterator.set().
|
virtual |
Overwrite/set an existing field based on the field set index.
LBMSDMAddingFieldException when the field doesn't exist
LBMSDMTypeMismatchException when the field isnt the same type as the element
| field | The new field value |
| idx | The index into the field set of the field |
References com.latencybusters.lbm.sdm.LBMSDMField.get_name().
|
virtual |
Overwrite/set an existing field based on the field set index and array element.
LBMSDMAddingFieldException when the field doesn't exist
LBMSDMTypeMismatchException when the field isnt the same type as the element
| newfield | The new field value |
| fieldidx | The index into the field set of the field |
| arrayidx | The element in the array to be set |
References com.latencybusters.lbm.sdm.LBMSDMField.set().
|
virtualinherited |
Set the debug level for processing this SDM message. Currently all debugs go to standard out.
| level | Debug level to set |
|
virtual |
Dump the internal representation of this field set which includes the fields.
References com.latencybusters.lbm.sdm.LBMSDMField.toDbgString().
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.toDbgString(), and com.latencybusters.lbm.sdm.LBMSDMessage.ToString().
| override System.String com.latencybusters.lbm.sdm.LBMSDMFields.ToString | ( | ) |
Dump the string representation of this field set which includes the fields.