void VCommand::UpdateValue(const VValueSingle& inValue, const ICommandListener* inExcept) { VValueBag* bag = new VValueBag; if (bag != NULL) { bag->SetAttribute(CVSTR("__command_value__"), dynamic_cast<VValueSingle*>(inValue.Clone())); UpdateValue(bag, inExcept); bag->Release(); } }
bool VCommand::Trigger(const VValueSingle& inValue, const ICommandListener* inExcept) { bool called = false; VValueBag* bag = new VValueBag; if (bag != NULL) { bag->SetAttribute(CVSTR("__command_value__"), dynamic_cast<VValueSingle*>(inValue.Clone())); called = Trigger(bag, inExcept); bag->Release(); } return called; }