# | Line 170 | Line 170 | int main(int argc, char* argv[]){ | |
---|---|---|
170 | ||
171 | //create xyzVisitor | |
172 | XYZVisitor* xyzVisitor; | |
173 | + | |
174 | if (args_info.selection_given) { | |
175 | xyzVisitor = new XYZVisitor(info, args_info.selection_arg); | |
176 | } else { | |
177 | xyzVisitor = new XYZVisitor(info); | |
178 | } | |
179 | + | |
180 | + | if(args_info.printPosOnly_flag){ |
181 | + | bool posOnly = true; |
182 | + | xyzVisitor->setPosOnly(posOnly); |
183 | + | } |
184 | + | |
185 | compositeVisitor->addVisitor(xyzVisitor, 200); | |
186 | ||
187 | std::cout << compositeVisitor->toString(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |