33 #include "BESDataHandlerInterface.h"
34 #include "BESContainer.h"
35 #include "BESResponseHandler.h"
37 #include "BESIndent.h"
81 if (
this == ©_from)
84 output_stream = copy_from.output_stream;
85 response_handler = copy_from.response_handler;
87 containers = copy_from.containers;
88 containers_iterator = copy_from.containers_iterator;
92 action_name = copy_from.action_name;
93 executed = copy_from.executed;
136 if (response_handler) {
137 delete response_handler;
139 response_handler = 0;
154 if (response_handler) {
169 strm << BESIndent::LMarg <<
"BESDataHandlerInterface::dump" << endl;
171 if (response_handler) {
172 strm << BESIndent::LMarg <<
"response handler:" << endl;
174 response_handler->
dump(strm);
175 BESIndent::UnIndent();
178 strm << BESIndent::LMarg <<
"response handler: not set" << endl;
182 strm << BESIndent::LMarg <<
"current container:" << endl;
185 BESIndent::UnIndent();
188 strm << BESIndent::LMarg <<
"current container: not set" << endl;
191 if (containers.size()) {
192 strm << BESIndent::LMarg <<
"container list:" << endl;
194 list<BESContainer *>::const_iterator i = containers.begin();
195 list<BESContainer *>::const_iterator ie = containers.end();
196 for (; i != ie; i++) {
199 BESIndent::UnIndent();
202 strm << BESIndent::LMarg <<
"container list: empty" << endl;
205 strm << BESIndent::LMarg <<
"action: " <<
action << endl;
206 strm << BESIndent::LMarg <<
"action name: " << action_name << endl;
209 strm << BESIndent::LMarg <<
"data:" << endl;
211 data_citer i =
data.begin();
212 data_citer ie =
data.end();
213 for (; i != ie; i++) {
214 strm << BESIndent::LMarg << (*i).first <<
": " << (*i).second << endl;
216 BESIndent::UnIndent();
219 strm << BESIndent::LMarg <<
"data: none" << endl;
223 strm << BESIndent::LMarg <<
"error info:" << endl;
226 BESIndent::UnIndent();
229 strm << BESIndent::LMarg <<
"error info: null" << endl;
231 BESIndent::UnIndent();