MCPcopy Create free account
hub / github.com/FidoProject/Fido / set

Method set

tests/catch.h:4107–4112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4105 struct BoundUnaryFunction : IArgFunction<C>{
4106 BoundUnaryFunction( void (*_function)( C& ) ) : function( _function ) {}
4107 virtual void set( C& obj, std::string const& stringValue ) const {
4108 bool value;
4109 convertInto( stringValue, value );
4110 if( value )
4111 function( obj );
4112 }
4113 virtual void setFlag( C& p ) const {
4114 function( p );
4115 }

Callers

nothing calls this directly

Calls 1

convertIntoFunction · 0.85

Tested by

no test coverage detected