TMQTTTokenizer.MD

October 10, 2018 ยท View on GitHub

Description

The TMQTTTokenizer class parses a filter or topic string into tokens and validates it. The parsing and validation operation is initiated by the constructor.

Example

  Tokens := TMQTTTokenizer.Create('some/mqtt/path/#',true);`
  if Tokens.Valid then
    ShowMessage(Tokens.AsString);

Properties

NameVisibilityAccessDescription
ValidpublicROReturns True if all the tokens in the list are valid
CountpublicROThe number of tokens in the Items[] array
Items[]publicROThe list of parsed tokens, which are TMQTTToken objects

Methods

NameVisibilityDescription
CreatepublicConstructs a tokenizer and parses Str, which is a filter or topic string. If Filter is true then Str is validated as a Filter string for a subscription. If Filter is false then Str is validated as a topic string for a PUBLISH message.
DestroypublicDestroys the Tokenizer and any tokens it contains
AsStringpublicReconstructs a text representation of a topic or a filter string from the tokens

See Also

TMQTTToken