MCPcopy Create free account
hub / github.com/apache/singa / SetDefaultXmlGenerator

Method SetDefaultXmlGenerator

test/gtest/gtest-all.cc:5095–5104  ·  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

5093// also be NULL in which case it will not be added to the list. Does
5094// nothing if the previous and the current listener objects are the same.
5095void TestEventListeners::SetDefaultXmlGenerator(TestEventListener* listener) {
5096 if (default_xml_generator_ != listener) {
5097 // It is an error to pass this method a listener that is already in the
5098 // list.
5099 delete Release(default_xml_generator_);
5100 default_xml_generator_ = listener;
5101 if (listener != NULL)
5102 Append(listener);
5103 }
5104}
5105
5106// Controls whether events will be forwarded by the repeater to the
5107// listeners in the list.

Callers 1

ConfigureXmlOutputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected