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

Method set

tests/catch.h:4090–4095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4088 struct BoundNullaryMethod : IArgFunction<C>{
4089 BoundNullaryMethod( void (C::*_member)() ) : member( _member ) {}
4090 virtual void set( C& p, std::string const& stringValue ) const {
4091 bool value;
4092 convertInto( stringValue, value );
4093 if( value )
4094 (p.*member)();
4095 }
4096 virtual void setFlag( C& p ) const {
4097 (p.*member)();
4098 }

Callers

nothing calls this directly

Calls 1

convertIntoFunction · 0.85

Tested by

no test coverage detected