@@ -310,6 +310,66 @@ Library::Container::Action Library::Container::actionFrom(const std::string& act
310310 return Container::Action::NO_ACTION ;
311311}
312312
313+ std::string Library::Container::toString (Library::Container::Yield yield)
314+ {
315+ switch (yield) {
316+ case Library::Container::Yield::AT_INDEX :
317+ return " at_index" ;
318+ case Library::Container::Yield::ITEM :
319+ return " item" ;
320+ case Library::Container::Yield::BUFFER :
321+ return " buffer" ;
322+ case Library::Container::Yield::BUFFER_NT :
323+ return " buffer-nt" ;
324+ case Library::Container::Yield::START_ITERATOR :
325+ return " start-iterator" ;
326+ case Library::Container::Yield::END_ITERATOR :
327+ return " end-iterator" ;
328+ case Library::Container::Yield::ITERATOR :
329+ return " iterator" ;
330+ case Library::Container::Yield::SIZE :
331+ return " size" ;
332+ case Library::Container::Yield::EMPTY :
333+ return " empty" ;
334+ case Library::Container::Yield::NO_YIELD :
335+ break ;
336+ }
337+ return " " ;
338+ }
339+
340+ std::string Library::Container::toString (Library::Container::Action action)
341+ {
342+ switch (action) {
343+ case Library::Container::Action::RESIZE :
344+ return " resize" ;
345+ case Library::Container::Action::CLEAR :
346+ return " clear" ;
347+ case Library::Container::Action::PUSH :
348+ return " push" ;
349+ case Library::Container::Action::POP :
350+ return " pop" ;
351+ case Library::Container::Action::FIND :
352+ return " find" ;
353+ case Library::Container::Action::FIND_CONST :
354+ return " find-const" ;
355+ case Library::Container::Action::INSERT :
356+ return " insert" ;
357+ case Library::Container::Action::ERASE :
358+ return " erase" ;
359+ case Library::Container::Action::APPEND :
360+ return " append" ;
361+ case Library::Container::Action::CHANGE_CONTENT :
362+ return " change-content" ;
363+ case Library::Container::Action::CHANGE :
364+ return " change" ;
365+ case Library::Container::Action::CHANGE_INTERNAL :
366+ return " change-internal" ;
367+ case Library::Container::Action::NO_ACTION :
368+ break ;
369+ }
370+ return " " ;
371+ }
372+
313373Library::Error Library::load (const tinyxml2::XMLDocument &doc)
314374{
315375 const tinyxml2::XMLElement * const rootnode = doc.FirstChildElement ();
0 commit comments