~zorba-coders/zorba/2.8-release-prep

« back to all changes in this revision

Viewing changes to src/functions/pregenerated/func_datetime.cpp

  • Committer: chillery+launchpad at lambda
  • Date: 2013-01-11 09:59:39 UTC
  • mfrom: (11176.1.4 zorba)
  • Revision ID: chillery+launchpad@lambda.nu-20130111095939-u1h3qp2yfc0fxwq3
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
25
#include "stdafx.h"
 
26
#include "runtime/datetime/datetime.h"
 
27
#include "functions/func_datetime.h"
 
28
 
 
29
 
 
30
namespace zorba{
 
31
 
 
32
 
 
33
 
 
34
PlanIter_t fn_zorba_dateTime_current_date::codegen(
 
35
  CompilerCB*,
 
36
  static_context* sctx,
 
37
  const QueryLoc& loc,
 
38
  std::vector<PlanIter_t>& argv,
 
39
  expr& ann) const
 
40
{
 
41
  return new CurrentDate(sctx, loc, argv);
 
42
}
 
43
 
 
44
PlanIter_t fn_zorba_dateTime_current_dateTime::codegen(
 
45
  CompilerCB*,
 
46
  static_context* sctx,
 
47
  const QueryLoc& loc,
 
48
  std::vector<PlanIter_t>& argv,
 
49
  expr& ann) const
 
50
{
 
51
  return new CurrentDateTime(sctx, loc, argv);
 
52
}
 
53
 
 
54
PlanIter_t fn_zorba_dateTime_current_time::codegen(
 
55
  CompilerCB*,
 
56
  static_context* sctx,
 
57
  const QueryLoc& loc,
 
58
  std::vector<PlanIter_t>& argv,
 
59
  expr& ann) const
 
60
{
 
61
  return new CurrentTime(sctx, loc, argv);
 
62
}
 
63
 
 
64
PlanIter_t fn_zorba_dateTime_parse_date::codegen(
 
65
  CompilerCB*,
 
66
  static_context* sctx,
 
67
  const QueryLoc& loc,
 
68
  std::vector<PlanIter_t>& argv,
 
69
  expr& ann) const
 
70
{
 
71
  return new ParseDate(sctx, loc, argv);
 
72
}
 
73
 
 
74
PlanIter_t fn_zorba_dateTime_parse_dateTime::codegen(
 
75
  CompilerCB*,
 
76
  static_context* sctx,
 
77
  const QueryLoc& loc,
 
78
  std::vector<PlanIter_t>& argv,
 
79
  expr& ann) const
 
80
{
 
81
  return new ParseDateTime(sctx, loc, argv);
 
82
}
 
83
 
 
84
PlanIter_t fn_zorba_dateTime_parse_time::codegen(
 
85
  CompilerCB*,
 
86
  static_context* sctx,
 
87
  const QueryLoc& loc,
 
88
  std::vector<PlanIter_t>& argv,
 
89
  expr& ann) const
 
90
{
 
91
  return new ParseTime(sctx, loc, argv);
 
92
}
 
93
 
 
94
PlanIter_t fn_zorba_dateTime_timestamp::codegen(
 
95
  CompilerCB*,
 
96
  static_context* sctx,
 
97
  const QueryLoc& loc,
 
98
  std::vector<PlanIter_t>& argv,
 
99
  expr& ann) const
 
100
{
 
101
  return new Timestamp(sctx, loc, argv);
 
102
}
 
103
 
 
104
PlanIter_t fn_zorba_dateTime_utc_offset::codegen(
 
105
  CompilerCB*,
 
106
  static_context* sctx,
 
107
  const QueryLoc& loc,
 
108
  std::vector<PlanIter_t>& argv,
 
109
  expr& ann) const
 
110
{
 
111
  return new UTCOffset(sctx, loc, argv);
 
112
}
 
113
 
 
114
void populate_context_datetime(static_context* sctx)
 
115
{
 
116
 
 
117
 
 
118
      {
 
119
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_current_date,
 
120
        (createQName("http://www.zorba-xquery.com/modules/datetime","","current-date"), 
 
121
        GENV_TYPESYSTEM.DATE_TYPE_ONE),
 
122
        FunctionConsts::FN_ZORBA_DATETIME_CURRENT_DATE_0);
 
123
 
 
124
  }
 
125
 
 
126
 
 
127
 
 
128
 
 
129
      {
 
130
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_current_dateTime,
 
131
        (createQName("http://www.zorba-xquery.com/modules/datetime","","current-dateTime"), 
 
132
        GENV_TYPESYSTEM.DATETIME_TYPE_ONE),
 
133
        FunctionConsts::FN_ZORBA_DATETIME_CURRENT_DATETIME_0);
 
134
 
 
135
  }
 
136
 
 
137
 
 
138
 
 
139
 
 
140
      {
 
141
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_current_time,
 
142
        (createQName("http://www.zorba-xquery.com/modules/datetime","","current-time"), 
 
143
        GENV_TYPESYSTEM.TIME_TYPE_ONE),
 
144
        FunctionConsts::FN_ZORBA_DATETIME_CURRENT_TIME_0);
 
145
 
 
146
  }
 
147
 
 
148
 
 
149
 
 
150
 
 
151
      {
 
152
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_parse_date,
 
153
        (createQName("http://www.zorba-xquery.com/modules/datetime","","parse-date"), 
 
154
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
155
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
156
        GENV_TYPESYSTEM.DATE_TYPE_ONE),
 
157
        FunctionConsts::FN_ZORBA_DATETIME_PARSE_DATE_2);
 
158
 
 
159
  }
 
160
 
 
161
 
 
162
 
 
163
 
 
164
      {
 
165
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_parse_date,
 
166
        (createQName("http://www.zorba-xquery.com/modules/datetime","","parse-date"), 
 
167
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
168
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
169
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
170
        GENV_TYPESYSTEM.DATE_TYPE_ONE),
 
171
        FunctionConsts::FN_ZORBA_DATETIME_PARSE_DATE_3);
 
172
 
 
173
  }
 
174
 
 
175
 
 
176
 
 
177
 
 
178
      {
 
179
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_parse_dateTime,
 
180
        (createQName("http://www.zorba-xquery.com/modules/datetime","","parse-dateTime"), 
 
181
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
182
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
183
        GENV_TYPESYSTEM.DATETIME_TYPE_ONE),
 
184
        FunctionConsts::FN_ZORBA_DATETIME_PARSE_DATETIME_2);
 
185
 
 
186
  }
 
187
 
 
188
 
 
189
 
 
190
 
 
191
      {
 
192
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_parse_dateTime,
 
193
        (createQName("http://www.zorba-xquery.com/modules/datetime","","parse-dateTime"), 
 
194
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
195
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
196
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
197
        GENV_TYPESYSTEM.DATETIME_TYPE_ONE),
 
198
        FunctionConsts::FN_ZORBA_DATETIME_PARSE_DATETIME_3);
 
199
 
 
200
  }
 
201
 
 
202
 
 
203
 
 
204
 
 
205
      {
 
206
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_parse_time,
 
207
        (createQName("http://www.zorba-xquery.com/modules/datetime","","parse-time"), 
 
208
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
209
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
210
        GENV_TYPESYSTEM.TIME_TYPE_ONE),
 
211
        FunctionConsts::FN_ZORBA_DATETIME_PARSE_TIME_2);
 
212
 
 
213
  }
 
214
 
 
215
 
 
216
 
 
217
 
 
218
      {
 
219
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_parse_time,
 
220
        (createQName("http://www.zorba-xquery.com/modules/datetime","","parse-time"), 
 
221
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
222
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
223
        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
 
224
        GENV_TYPESYSTEM.TIME_TYPE_ONE),
 
225
        FunctionConsts::FN_ZORBA_DATETIME_PARSE_TIME_3);
 
226
 
 
227
  }
 
228
 
 
229
 
 
230
 
 
231
 
 
232
      {
 
233
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_timestamp,
 
234
        (createQName("http://www.zorba-xquery.com/modules/datetime","","timestamp"), 
 
235
        GENV_TYPESYSTEM.LONG_TYPE_ONE),
 
236
        FunctionConsts::FN_ZORBA_DATETIME_TIMESTAMP_0);
 
237
 
 
238
  }
 
239
 
 
240
 
 
241
 
 
242
 
 
243
      {
 
244
    DECL_WITH_KIND(sctx, fn_zorba_dateTime_utc_offset,
 
245
        (createQName("http://www.zorba-xquery.com/modules/datetime","","utc-offset"), 
 
246
        GENV_TYPESYSTEM.LONG_TYPE_ONE),
 
247
        FunctionConsts::FN_ZORBA_DATETIME_UTC_OFFSET_0);
 
248
 
 
249
  }
 
250
 
 
251
}
 
252
 
 
253
 
 
254
}
 
255
 
 
256
 
 
257