1 /*
2  * Copyright 2006-2012 The FLWOR Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 // ******************************************
18 // *                                        *
19 // * THIS IS A GENERATED FILE. DO NOT EDIT! *
20 // * SEE .xml FILE WITH SAME NAME           *
21 // *                                        *
22 // ******************************************
23 
24 #include "stdafx.h"
25 #include "zorbatypes/rchandle.h"
26 #include "zorbatypes/zstring.h"
27 #include "runtime/visitors/planiter_visitor.h"
28 #include "runtime/fetch/fetch.h"
29 #include "system/globalenv.h"
30 
31 
32 
33 namespace zorba {
34 
35 // <FetchContentIterator>
SERIALIZABLE_CLASS_VERSIONS(FetchContentIterator)36 SERIALIZABLE_CLASS_VERSIONS(FetchContentIterator)
37 
38 void FetchContentIterator::serialize(::zorba::serialization::Archiver& ar)
39 {
40   serialize_baseclass(ar,
41   (NaryBaseIterator<FetchContentIterator, PlanIteratorState>*)this);
42 }
43 
44 
accept(PlanIterVisitor & v) const45 void FetchContentIterator::accept(PlanIterVisitor& v) const
46 {
47   v.beginVisit(*this);
48 
49   std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
50   std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
51   for ( ; lIter != lEnd; ++lIter ){
52     (*lIter)->accept(v);
53   }
54 
55   v.endVisit(*this);
56 }
57 
~FetchContentIterator()58 FetchContentIterator::~FetchContentIterator() {}
59 
60 // </FetchContentIterator>
61 
62 
63 // <FetchContentBinaryIterator>
SERIALIZABLE_CLASS_VERSIONS(FetchContentBinaryIterator)64 SERIALIZABLE_CLASS_VERSIONS(FetchContentBinaryIterator)
65 
66 void FetchContentBinaryIterator::serialize(::zorba::serialization::Archiver& ar)
67 {
68   serialize_baseclass(ar,
69   (NaryBaseIterator<FetchContentBinaryIterator, PlanIteratorState>*)this);
70 }
71 
72 
accept(PlanIterVisitor & v) const73 void FetchContentBinaryIterator::accept(PlanIterVisitor& v) const
74 {
75   v.beginVisit(*this);
76 
77   std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
78   std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
79   for ( ; lIter != lEnd; ++lIter ){
80     (*lIter)->accept(v);
81   }
82 
83   v.endVisit(*this);
84 }
85 
~FetchContentBinaryIterator()86 FetchContentBinaryIterator::~FetchContentBinaryIterator() {}
87 
88 // </FetchContentBinaryIterator>
89 
90 
91 // <FetchContentTypeIterator>
SERIALIZABLE_CLASS_VERSIONS(FetchContentTypeIterator)92 SERIALIZABLE_CLASS_VERSIONS(FetchContentTypeIterator)
93 
94 void FetchContentTypeIterator::serialize(::zorba::serialization::Archiver& ar)
95 {
96   serialize_baseclass(ar,
97   (NaryBaseIterator<FetchContentTypeIterator, PlanIteratorState>*)this);
98 }
99 
100 
accept(PlanIterVisitor & v) const101 void FetchContentTypeIterator::accept(PlanIterVisitor& v) const
102 {
103   v.beginVisit(*this);
104 
105   std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
106   std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
107   for ( ; lIter != lEnd; ++lIter ){
108     (*lIter)->accept(v);
109   }
110 
111   v.endVisit(*this);
112 }
113 
~FetchContentTypeIterator()114 FetchContentTypeIterator::~FetchContentTypeIterator() {}
115 
116 // </FetchContentTypeIterator>
117 
118 
119 
120 }
121 
122 
123