37 const std::string m_Name;
38 const std::string m_Desc;
51 const std::string&
Name()
const;
58 const std::string&
Desc()
const;
76 std::vector<std::string> argv)
const = 0;
An action that generates interface representation from codes.
FrontendKind Kind() const
Gets the kind of this action.
const std::string & Name() const
Gets the name of this action.
FrontendAction(FrontendKind kind, std::string name, std::string desc)
static const std::vector< FrontendAction * > & GetRegistered()
Gets all registered actions.
virtual ~FrontendAction()=default
virtual int Run(std::string output, std::vector< std::string > argv) const =0
const std::string & Desc() const
Gets the description of this action.