Files
mbed-os/connectivity/nfc/docs/uml_diagram_ndef_simple_parser.txt
Beslan 0ef1717155
Some checks failed
Basic Checks / license-check (push) Has been cancelled
Basic Checks / include-check (push) Has been cancelled
Basic Checks / style-check (push) Has been cancelled
Basic Checks / docs-check (push) Has been cancelled
Basic Checks / python-tests (push) Has been cancelled
Basic Checks / pin-validation (push) Has been cancelled
Basic Checks / cmake-checks (push) Has been cancelled
Basic Checks / frozen-tools-check (push) Has been cancelled
Publish or Update docker image for head of branch / prepare-tags (push) Has been cancelled
Release or update docker image for a released mbed-os version / prepare-tags (push) Has been cancelled
Publish or Update docker image for head of branch / build-container (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/amd64) (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/arm64) (push) Has been cancelled
Publish or Update docker image for head of branch / deploy-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / build-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/amd64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/arm64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / deploy-container (push) Has been cancelled
Prune temporary docker images / prune-images (push) Has been cancelled
Mirror mbed-os-6.15.0
2026-07-10 18:42:39 +03:00

105 lines
2.6 KiB
Plaintext

@startuml
package ndef {
class RecordParserChain {
}
abstract RecordParser {
}
abstract GenericRecordParser<ParserImplementation, ParsingResult> {
}
interface GenericRecordParser::Delegate<ParsingResult> {
+{abstract} void on_record_parsed(const ParsingResult& record, const RecordID* id)
#~Delegate()
}
class MessageParser {
}
interface MessageParser::Delegate {
+{abstract} void on_parsing_started()
+{abstract} void on_record_parsed(const Record& record)
+{abstract} void on_parsing_terminated()
+{abstract} void on_parsing_error(error_t error)
# ~Delegate()
}
MessageParser +-- "0..1" MessageParser::Delegate
RecordParserChain -o RecordParser
GenericRecordParser --|> RecordParser
GenericRecordParser +- "0..1" GenericRecordParser::Delegate
RecordParserChain -[hidden]- MessageParser
}
package common {
class SimpleMessageParser {
+ SimpleMessageParser()
+ ~SimpleMessageParser()
+ void set_delegate(Delegate *delegate)
+ void parse(const Span<const uint8_t> &data_buffer)
+ void add_record_parser(ndef::RecordParser *parser)
- void on_parsing_error(ndef::MessageParser::error_t error)
- void on_parsing_started()
- void on_record_parsed(const ndef::Record &record)
- void on_parsing_terminated()
- void on_record_parsed(const URI &uri, const ndef::RecordID &id)
- void on_record_parsed(const Text &uri, const ndef::RecordID &id)
- void on_record_parsed(const Mime &uri, const ndef::RecordID &id)
}
interface SimpleMessageParser::Delegate {
+ {abstract} void on_parsing_started()
+ {abstract} void on_text_parsed(const Text &text, const ndef::RecordID &id)
+ {abstract} void on_mime_parsed(const Mime &text, const ndef::RecordID &id)
+ {abstract} void on_uri_parsed(const URI &uri, const ndef::RecordID &id)
+ {abstract} void on_unknown_record_parsed(const ndef::Record &record)
+ {abstract} void on_parsing_terminated()
+ {abstract} void on_parsing_error(ndef::MessageParser::error_t error)
# ~Delegate()
}
SimpleMessageParser::Delegate +- SimpleMessageParser
class URIParser {
}
class TextParser {
}
class MimeParser {
}
URIParser --|> GenericRecordParser
TextParser --|> GenericRecordParser
MimeParser --|> GenericRecordParser
SimpleMessageParser o-- URIParser
SimpleMessageParser o-- TextParser
SimpleMessageParser o-- MimeParser
SimpleMessageParser o-- RecordParserChain
SimpleMessageParser o-- MessageParser
SimpleMessageParser <|-- MessageParser::Delegate
SimpleMessageParser <|-- GenericRecordParser::Delegate
SimpleMessageParser <|-- GenericRecordParser::Delegate
SimpleMessageParser <|-- GenericRecordParser::Delegate
}
@enduml