MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / callback

Method callback

simcore/framework/src/cli/cli.hpp:4842–4849  ·  view source on GitHub ↗

Set a callback for execution when all parsing and processing has completed Due to a bug in c++11, it is not possible to overload on std::function (fixed in c++14 and backported to c++11 on newer compilers). Use capture by reference to get a pointer to App if needed.

Source from the content-addressed store, hash-verified

4840 /// and backported to c++11 on newer compilers). Use capture by reference
4841 /// to get a pointer to App if needed.
4842 App *callback(std::function<void()> app_callback) {
4843 if (immediate_callback_) {
4844 parse_complete_callback_ = std::move(app_callback);
4845 } else {
4846 final_callback_ = std::move(app_callback);
4847 }
4848 return this;
4849 }
4850
4851 /// Set a callback for execution when all parsing and processing has completed
4852 /// aliased as callback

Callers 7

ConfShowMethod · 0.80
ConfRestoreMethod · 0.80
ConfRmMethod · 0.80
ConfUpdMethod · 0.80
ConfAddMethod · 0.80
ConfSetSysMethod · 0.80
RootCmdMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected