bmv2
Designing your own switch target with bmv2
Public Member Functions | List of all members
bm::TargetParserIface Class Referenceabstract

Interface for target-specific command-line options parsers. More...

Inheritance diagram for bm::TargetParserIface:
Inheritance graph
[legend]

Public Member Functions

virtual int parse (const std::vector< std::string > &more_options, std::ostream *errstream)=0
 
virtual void help_msg (std::ostream *outstream) const =0
 

Detailed Description

Interface for target-specific command-line options parsers.

Member Function Documentation

◆ help_msg()

virtual void bm::TargetParserIface::help_msg ( std::ostream *  outstream) const
pure virtual

Called by the bmv2 command-line parser, when the user requests the help description (with -h, --help).

Implemented in bm::TargetParserBasic.

◆ parse()

virtual int bm::TargetParserIface::parse ( const std::vector< std::string > &  more_options,
std::ostream *  errstream 
)
pure virtual

Called by the bmv2 command-line options parser, when it is done with general options. All options appearing after -- will be passed to this function. errstream should be used to log error messages.

Implemented in bm::TargetParserBasicWithDynModules, and bm::TargetParserBasic.


The documentation for this class was generated from the following file: