clang-tags
C/C++ source code indexing tool based on libclang
|
Public Member Functions | |
IndexCommand (const std::string &name, Application &application) | |
void | defaults () |
Set default values for keys. | |
void | run (std::ostream &cout) |
Run the command. | |
Public Member Functions inherited from UpdateCommand | |
UpdateCommand (const std::string &name, Application &application) | |
Public Member Functions inherited from Request::CommandParser | |
CommandParser (std::string name, std::string description="") | |
Constructor. | |
void | parse (std::istream &cin, std::ostream &cout, bool echo=false) |
Parse an input stream and handle key arguments. | |
void | parseJson (const Json::Value &request, std::ostream &cout) |
Parse an input stream and handle key arguments. |
Additional Inherited Members | |
Protected Member Functions inherited from Request::CommandParser | |
const std::string & | name () |
Get the command name. | |
void | setDescription (std::string description) |
Set the command description. | |
CommandParser & | add (KeyParserBase *key) |
Add a key parser to the list of parameters. | |
Protected Attributes inherited from UpdateCommand | |
Application & | application_ |
Application::IndexArgs | args_ |
|
inlinevirtual |
Set default values for keys.
This method should be specialized to specify default key values.
Reimplemented from UpdateCommand.
|
inlinevirtual |
Run the command.
This typically is a user-defined function. It should use key values and write results on the provided output stream.
cout | output stream for results |
Reimplemented from UpdateCommand.