ROSE 0.11.145.147
Public Member Functions | List of all members
Rose::BinaryAnalysis::Partitioner2::Engine::AllButLastArguments Class Reference

Description

All but the last N arguments are the specimen.

Definition at line 233 of file Partitioner2/Engine.h.

#include <Rose/BinaryAnalysis/Partitioner2/Engine.h>

Inheritance diagram for Rose::BinaryAnalysis::Partitioner2::Engine::AllButLastArguments:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::Partitioner2::Engine::AllButLastArguments:
Collaboration graph
[legend]

Public Member Functions

 AllButLastArguments (size_t n)
 Constructor returning all but last n arguments.
 
virtual std::vector< std::string > specimen (const std::vector< std::string > &) const override
 Return specimen from positional arguments.
 

Member Function Documentation

◆ specimen()

virtual std::vector< std::string > Rose::BinaryAnalysis::Partitioner2::Engine::AllButLastArguments::specimen ( const std::vector< std::string > &  ) const
overridevirtual

Return specimen from positional arguments.

Given a list of positional arguments from the command-line (i.e., the stuff that comes after the switches), return those positional arguments that represent the specimen and which are used to choose the engine subclass.

The default implementation in the Engine base class just returns all input arguments.

Implements Rose::BinaryAnalysis::Partitioner2::Engine::PositionalArgumentParser.


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