|
| | GenVim (const CLToolOptions &options) |
| | Construct the Vim generator.
|
| |
| virtual Completion | complete (const std::vector< std::string > &arguments) const |
| | Complete arguments following the tool name, including the current partial word as the last element (possibly empty).
|
| |
| std::string | description () const override |
| | Return a brief description of this tool.
|
| |
| const std::vector< void * > & | getDLHandles () const |
| | Return the loaded libraries visible to this command-line tool.
|
| |
| const std::map< std::string, std::string > & | getInputData () |
| |
| int | main (FILE *in, FILE *out, Communicator &pc) override |
| | Generate Vim syntax and help files in the requested output directory.
|
| |
| virtual bool | readInput (int argc, char **argv, FILE *in, FILE *out) |
| | Read the arguments from the command line Override to implement a tool with positional arguments.
|
| |
| void | setDLHandles (const std::vector< void * > &handles) |
| | Set the loaded libraries visible to this command-line tool.
|
| |
| void | setInputData (const std::map< std::string, std::string > &newInputData) |
| | Set the input data:
|
| |
|
| void | error (const std::string &msg) |
| | Crash the command line tool with an error.
|
| |
| template<class T> |
| bool | parse (const std::string &key, T &t) |
| | Get the value of one of the command line arguments.
|
| |
| void | parseFlag (const std::string &key, bool &t) |
| | Find out whether one of the command line flags is present or not.
|
| |
| template<class T> |
| bool | parseVector (const std::string &key, std::vector< T > &t) |
| |
|
| bool | readCommandLineArgs (int argc, char **argv, FILE *out) |
| | Read the arguments from the command line.
|
| |
| bool | readInputFile (int argc, char **argv, FILE *in, FILE *out) |
| | Read the arguments from an input file specified on the command line.
|
| |
| void | setRemainingToDefault (FILE *out) |
| | Set arguments from the default options provided to Keywords.
|
| |
|
| std::vector< void * > | dlHandles |
| |
| std::map< std::string, std::string > | inputData |
| | The data read in from the command line stored in a map with the keywords.
|
| |
| const Keywords & | keywords |
| | The list of keywords for this CLTool.
|
| |
| const std::string | name |
| | The name of this command line tool.
|
| |
◆ inputType
How is the input specified on the command line or in an input file.
| Enumerator |
|---|
| unset | |
| commandline | |
| ifile | |
◆ GenVim()
Construct the Vim generator.
- Parameters
-
| options | Command-line tool construction options. |
◆ complete()
| CLTool::Completion PLMD::CLTool::complete |
( |
const std::vector< std::string > & | arguments | ) |
const |
|
virtualinherited |
Complete arguments following the tool name, including the current partial word as the last element (possibly empty).
This does not parse required input or run the tool. The default uses registered keywords and falls back to filenames for values/positional input. Override for tool-specific values.
Reimplemented in PLMD::cltools::H5Convert.
◆ description()
| std::string PLMD::cltools::GenVim::description |
( |
| ) |
const |
|
overridevirtual |
Return a brief description of this tool.
Reimplemented from PLMD::CLTool.
◆ error()
| void PLMD::CLTool::error |
( |
const std::string & | msg | ) |
|
|
protectedinherited |
Crash the command line tool with an error.
◆ getDLHandles()
| const std::vector< void * > & PLMD::CLTool::getDLHandles |
( |
| ) |
const |
|
inlineinherited |
Return the loaded libraries visible to this command-line tool.
These are the command-line –load handles supplied by CLToolMain, rather than the input-file LOAD handles stored in PlumedMain.
- Returns
- The tool's non-owning handle list. The reference remains valid until this tool is destroyed or setDLHandles() replaces the list.
◆ getInputData()
| const std::map< std::string, std::string > & PLMD::CLTool::getInputData |
( |
| ) |
|
|
inlineinherited |
◆ main()
| int PLMD::cltools::GenVim::main |
( |
FILE * | in, |
|
|
FILE * | out, |
|
|
Communicator & | pc ) |
|
overridevirtual |
Generate Vim syntax and help files in the requested output directory.
- Returns
- Zero after all generated files have been installed successfully.
- Exceptions
-
| std::runtime_error | If templates are invalid or files cannot be written. |
| std::filesystem::filesystem_error | If output directories cannot be updated. |
Implements PLMD::CLTool.
◆ parse()
template<class T>
| bool PLMD::CLTool::parse |
( |
const std::string & | key, |
|
|
T & | t ) |
|
protectedinherited |
Get the value of one of the command line arguments.
◆ parseFlag()
| void PLMD::CLTool::parseFlag |
( |
const std::string & | key, |
|
|
bool & | t ) |
|
protectedinherited |
Find out whether one of the command line flags is present or not.
◆ parseVector()
template<class T>
| bool PLMD::CLTool::parseVector |
( |
const std::string & | key, |
|
|
std::vector< T > & | t ) |
|
protectedinherited |
◆ readCommandLineArgs()
| bool PLMD::CLTool::readCommandLineArgs |
( |
int | argc, |
|
|
char ** | argv, |
|
|
FILE * | out ) |
|
privateinherited |
Read the arguments from the command line.
◆ readInput()
| bool PLMD::CLTool::readInput |
( |
int | argc, |
|
|
char ** | argv, |
|
|
FILE * | in, |
|
|
FILE * | out ) |
|
virtualinherited |
◆ readInputFile()
| bool PLMD::CLTool::readInputFile |
( |
int | argc, |
|
|
char ** | argv, |
|
|
FILE * | in, |
|
|
FILE * | out ) |
|
privateinherited |
Read the arguments from an input file specified on the command line.
◆ registerKeywords()
| void PLMD::cltools::GenVim::registerKeywords |
( |
Keywords & | keys | ) |
|
|
static |
Register command-line options for Vim file generation.
- Parameters
-
| keys | Keyword collection receiving the generator's options. |
◆ setDLHandles()
| void PLMD::CLTool::setDLHandles |
( |
const std::vector< void * > & | handles | ) |
|
|
inlineinherited |
Set the loaded libraries visible to this command-line tool.
CLToolMain supplies handles from its local DLLoader for command-line –load options. These differ from PlumedMain's input-file LOAD handles. Metadata tools need them to include loaded registrations and overrides.
- Parameters
-
| handles | Non-owning handles in registry lookup order. The list is copied, but ownership remains with the caller's DLLoader, which must keep the libraries loaded while the tool uses them. |
◆ setInputData()
| void PLMD::CLTool::setInputData |
( |
const std::map< std::string, std::string > & | newInputData | ) |
|
|
inlineinherited |
◆ setRemainingToDefault()
| void PLMD::CLTool::setRemainingToDefault |
( |
FILE * | out | ) |
|
|
privateinherited |
Set arguments from the default options provided to Keywords.
◆ dlHandles
| std::vector<void*> PLMD::CLTool::dlHandles |
|
privateinherited |
◆ inputData
| std::map<std::string,std::string> PLMD::CLTool::inputData |
|
privateinherited |
The data read in from the command line stored in a map with the keywords.
◆ inputdata
◆ keywords
The list of keywords for this CLTool.
◆ name
| const std::string PLMD::CLTool::name |
|
privateinherited |
The name of this command line tool.
The documentation for this class was generated from the following file: