Class NodeParserRegistry

Class Documentation

class NodeParserRegistry

NodeParserRegistry defined registration of NodeParser.

Public Functions

inline NodeParserRegistry(converter::FmkType fmk_type, const std::string &node_type, const converter::NodeParserPtr &node_parser)

Constructor of NodeParserRegistry to register NodeParser.

Parameters
  • fmk_type[in] Define the framework.

  • node_type[in] Define the type of the node to be resolved.

  • node_parser[in] Define the NodeParser instance to parse the node.

~NodeParserRegistry() = default

Destructor.

Public Static Functions

static inline converter::NodeParserPtr GetNodeParser(converter::FmkType fmk_type, const std::string &node_type)

Static method to obtain NodeParser instance of a certain node.

Parameters
  • fmk_type[in] Define the framework.

  • node_type[in] Define the type of the node to be resolved.

Returns

NodeParser instance.