Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
PreprocessorList Class Reference

Lists all available preprocessor containers. More...

#include <preprocessor_list.hpp>

+ Inheritance diagram for PreprocessorList:
+ Collaboration diagram for PreprocessorList:

Public Member Functions

 PreprocessorList ()
 
bool validate (const ParsedOptions &options) override
 Validate the arguments already analyzed.
 
bool run (const ParsedOptions &options) override
 Executes the main logic of the command.
 
- Public Member Functions inherited from CommandBase< PreprocessorList >
virtual void print_help (const std::string command_name, const OptionsCollector *collector) const
 
const CliOptionoptions () const final
 
bool do_run (const std::string command_name, const ParsedOptions &options, const OptionsCollector *collector=nullptr) override
 
- Public Member Functions inherited from ICommand
virtual ~ICommand ()=default
 
virtual std::string_view description () const =0
 

Detailed Description

Lists all available preprocessor containers.

Handles user interaction for displaying containers, including optional formatting without color. Provides validation and execution logic for the command.

Definition at line 34 of file preprocessor_list.hpp.

Constructor & Destructor Documentation

◆ PreprocessorList()

PreprocessorList::PreprocessorList ( )

Definition at line 21 of file preprocessor_list.cpp.

Member Function Documentation

◆ run()

bool PreprocessorList::run ( const ParsedOptions & options)
overridevirtual

Executes the main logic of the command.

You must use the validated arguments to perform the action desired by the command.

Parameters
optionsThe ParsedOptions structure will be populated with the arguments.
Returns
True if the execution is successful, false if an error occurs.

Implements ICommand.

Definition at line 28 of file preprocessor_list.cpp.

◆ validate()

bool PreprocessorList::validate ( const ParsedOptions & options)
overridevirtual

Validate the arguments already analyzed.

Verify that all required options have been selected and that the values ​​provided are valid.

Parameters
optionsThe ParsedOptions structure will be populated with the arguments.
Returns
True if the arguments are valid, false otherwise.

Implements ICommand.

Definition at line 23 of file preprocessor_list.cpp.


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