bmv2
Designing your own switch target with bmv2
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes
target_parser.h File Reference

Go to the source code of this file.

Classes

class  bm::TargetParserIface
 Interface for target-specific command-line options parsers. More...
 
class  bm::TargetParserBasic
 
class  bm::TargetParserBasicWithDynModules
 

Detailed Description

This file defines the bm::TargetParserIface interface and the bm::TargetParserBasic class, which implements this interface. Target developpers can write their own parser class, implementing bm::TargetParserIface, and pass an instance of it to bm::SwitchWContexts::init_from_command_line_options, which will be used to parse target-specific options. bm::TargetParserBasic is a simple example of a parser class, which should be enough for many targets.