MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / SetDefaultXmlGenerator

Method SetDefaultXmlGenerator

cpp/test/src/gtest.cc:3941–3950  ·  view source on GitHub ↗

Sets the default_xml_generator attribute to the provided listener. The listener is also added to the listener list and previous default_xml_generator is removed from it and deleted. The listener can also be NULL in which case it will not be added to the list. Does nothing if the previous and the current listener objects are the same.

Source from the content-addressed store, hash-verified

3939// also be NULL in which case it will not be added to the list. Does
3940// nothing if the previous and the current listener objects are the same.
3941void TestEventListeners::SetDefaultXmlGenerator(TestEventListener* listener) {
3942 if (default_xml_generator_ != listener) {
3943 // It is an error to pass this method a listener that is already in the
3944 // list.
3945 delete Release(default_xml_generator_);
3946 default_xml_generator_ = listener;
3947 if (listener != NULL)
3948 Append(listener);
3949 }
3950}
3951
3952// Controls whether events will be forwarded by the repeater to the
3953// listeners in the list.

Callers 1

ConfigureXmlOutputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected