~zorba-coders/zorba/trunk

« back to all changes in this revision

Viewing changes to src/context/dynamic_context.h

  • Committer: Zorba Build Bot
  • Author(s): paul at lucasmail
  • Date: 2013-03-21 19:33:22 UTC
  • mfrom: (11255.2.76 bug-1123162)
  • Revision ID: chillery+buildbot@lambda.nu-20130321193322-6fdtcp5ldf1dhych
Fixed many date/time formatting bugs by completely rewriting the code; added basic support for multiple calendar systems; added default countries-for-languages look-up for locales. Approved: Matthias Brantner, Sorin Marian Nasoi, Nicolae Brinza, Paul J. Lucas

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#define ZORBA_DYNAMIC_CONTEXT_H
19
19
 
20
20
#include <zorba/external_function_parameter.h>
 
21
#include <zorba/time.h>
21
22
 
22
23
#include "zorbautils/hashmap_zstring.h"
23
24
#include "zorbautils/hashmap_itemp.h"
141
142
 
142
143
  locale::iso639_1::type       theLang;
143
144
  locale::iso3166_1::type      theCountry;
 
145
  time::calendar::type         theCalendar;
144
146
 
145
147
public:
146
148
  double                       theDocLoadingUserTime;
189
191
      *country = theCountry;
190
192
  }
191
193
 
 
194
  void set_calendar( time::calendar::type calendar ) {
 
195
    theCalendar = calendar;
 
196
  }
 
197
 
 
198
  time::calendar::type get_calendar() const {
 
199
    return theCalendar;
 
200
  }
 
201
 
192
202
  const std::vector<VarValue>& get_variables() const { return theVarValues; }
193
203
 
194
204
  void add_variable(ulong varid, store::Item_t& value);