31class EXP clonevisitor :
35 clonevisitor() : fClone(
true) {}
36 virtual ~clonevisitor() {}
38 virtual void visitStart( Sxmlelement& elt );
39 virtual void visitEnd ( Sxmlelement& elt );
41 virtual Sxmlelement clone() {
return fStack.top(); }
44 virtual void clone(
bool state) { fClone = state; }
45 virtual void copyAttributes (
const Sxmlelement& src, Sxmlelement& dst);
46 virtual Sxmlelement copy (
const Sxmlelement& elt);
47 virtual Sxmlelement& lastCopy () {
return fLastCopy; }
50 Sxmlelement fLastCopy;
51 std::stack<Sxmlelement> fStack;