~zorba-coders/zorba/bugs-912586-912593-912722

« back to all changes in this revision

Viewing changes to src/context/static_context.h

  • Committer: Cezar Andrei
  • Date: 2012-03-28 15:42:12 UTC
  • mfrom: (10606.1.129 zorba)
  • Revision ID: cezar.lp@cezarandrei.com-20120328154212-jh2heq49xcqjppce
Merge from trunck and resolve ChangeLog conflict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
  theExternalModulesMap :
274
274
  -----------------------
275
275
 
276
 
  theTypeMnager :
 
276
  theTypeManager :
277
277
  ---------------
278
278
  If non NULL, then "this" is the root sctx of a module, and theTypeManager stores
279
279
  the schemas that are imported by the associated module (in-scope element
296
296
 
297
297
  theVariablesMap :
298
298
  -----------------
299
 
  
 
299
 
300
300
  theImportedPrivateVariablesMap :
301
301
  --------------------------------
302
302
 
431
431
  //
432
432
  // W3C namespaces
433
433
  //
434
 
  static const zstring W3C_NS_PREFIX; // http://www.w3.org/
435
 
 
436
 
  static const zstring W3C_XML_NS;    // http://www.w3.org/XML/1998/namespace
437
 
 
438
 
  static const zstring W3C_FN_NS;     // http://www.w3.org/2005/xpath-functions
 
434
  static const char* W3C_NS_PREFIX; // http://www.w3.org/
 
435
 
 
436
  static const char* W3C_XML_NS;    // http://www.w3.org/XML/1998/namespace
 
437
 
 
438
  static const char* W3C_FN_NS;     // http://www.w3.org/2005/xpath-functions
439
439
 
440
440
  //
441
441
  // Zorba namespaces
442
442
  //
443
443
 
444
 
  static const zstring ZORBA_NS_PREFIX; // http://www.zorba-xquery.com/
 
444
  static const char* ZORBA_NS_PREFIX; // http://www.zorba-xquery.com/
445
445
 
446
446
  // Namespaces of external modules declaring zorba builtin functions
447
 
  static const zstring ZORBA_MATH_FN_NS;
448
 
  static const zstring ZORBA_BASE64_FN_NS;
449
 
  static const zstring ZORBA_NODEREF_FN_NS;
450
 
  static const zstring ZORBA_NODEPOS_FN_NS;
451
 
  static const zstring ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_FN_NS;
452
 
  static const zstring ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
453
 
  static const zstring ZORBA_STORE_STATIC_COLLECTIONS_DDL_FN_NS;
454
 
  static const zstring ZORBA_STORE_STATIC_COLLECTIONS_DML_FN_NS;
455
 
  static const zstring ZORBA_STORE_STATIC_INDEXES_DDL_FN_NS;
456
 
  static const zstring ZORBA_STORE_STATIC_INDEXES_DML_FN_NS;
457
 
  static const zstring ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_FN_NS;
458
 
  static const zstring ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DML_FN_NS;
459
 
  static const zstring ZORBA_STORE_DYNAMIC_DOCUMENTS_FN_NS;
460
 
  static const zstring ZORBA_STORE_DYNAMIC_UNORDERED_MAP_FN_NS;
461
 
  static const zstring ZORBA_SCHEMA_FN_NS;
462
 
  static const zstring ZORBA_XQDOC_FN_NS;
463
 
  static const zstring ZORBA_RANDOM_FN_NS;
464
 
  static const zstring ZORBA_INTROSP_SCTX_FN_NS;
465
 
  static const zstring ZORBA_REFLECTION_FN_NS;
466
 
  static const zstring ZORBA_STRING_FN_NS;
467
 
  static const zstring ZORBA_FETCH_FN_NS;
468
 
  static const zstring ZORBA_NODE_FN_NS;
469
 
  static const zstring ZORBA_XML_FN_NS;
 
447
  static const char* ZORBA_MATH_FN_NS;
 
448
  static const char* ZORBA_BASE64_FN_NS;
 
449
  static const char* ZORBA_JSON_FN_NS;
 
450
  static const char* ZORBA_NODEREF_FN_NS;
 
451
  static const char* ZORBA_NODEPOS_FN_NS;
 
452
  static const char* ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_FN_NS;
 
453
  static const char* ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
 
454
  static const char* ZORBA_STORE_STATIC_COLLECTIONS_DDL_FN_NS;
 
455
  static const char* ZORBA_STORE_STATIC_COLLECTIONS_DML_FN_NS;
 
456
  static const char* ZORBA_STORE_STATIC_INDEXES_DDL_FN_NS;
 
457
  static const char* ZORBA_STORE_STATIC_INDEXES_DML_FN_NS;
 
458
  static const char* ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_FN_NS;
 
459
  static const char* ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DML_FN_NS;
 
460
  static const char* ZORBA_STORE_DYNAMIC_DOCUMENTS_FN_NS;
 
461
  static const char* ZORBA_STORE_DYNAMIC_UNORDERED_MAP_FN_NS;
 
462
  static const char* ZORBA_SCHEMA_FN_NS;
 
463
  static const char* ZORBA_XQDOC_FN_NS;
 
464
  static const char* ZORBA_RANDOM_FN_NS;
 
465
  static const char* ZORBA_INTROSP_SCTX_FN_NS;
 
466
  static const char* ZORBA_REFLECTION_FN_NS;
 
467
  static const char* ZORBA_STRING_FN_NS;
 
468
  static const char* ZORBA_URI_FN_NS;
 
469
  static const char* ZORBA_FETCH_FN_NS;
 
470
  static const char* ZORBA_NODE_FN_NS;
 
471
  static const char* ZORBA_XML_FN_NS;
 
472
  static const char* ZORBA_XML_FN_OPTIONS_NS;
470
473
 
471
474
  // Namespaces of virtual modules declaring zorba builtin functions
472
 
  static const zstring ZORBA_UTIL_FN_NS;
473
 
  static const zstring ZORBA_SCRIPTING_FN_NS;
 
475
  static const char* ZORBA_UTIL_FN_NS;
 
476
  static const char* ZORBA_SCRIPTING_FN_NS;
474
477
 
475
478
  // Namespaces of virtual modules declaring internal builtin functions of
476
479
  // XQUERY or zorba. Internal functions are not visible to xquery programs.
477
 
  static const zstring XQUERY_OP_NS;
478
 
  static const zstring ZORBA_OP_NS;
 
480
  static const char* XQUERY_OP_NS;
 
481
  static const char* ZORBA_OP_NS;
479
482
 
480
483
  // options-related namepsaces
481
 
  static const zstring ZORBA_OPTIONS_NS;
482
 
  static const zstring ZORBA_OPTION_WARN_NS;
483
 
  static const zstring ZORBA_OPTION_FEATURE_NS;
484
 
  static const zstring ZORBA_OPTION_OPTIM_NS;
485
 
  static const zstring ZORBA_VERSIONING_NS;
 
484
  static const char* ZORBA_OPTIONS_NS;
 
485
  static const char* ZORBA_OPTION_WARN_NS;
 
486
  static const char* ZORBA_OPTION_FEATURE_NS;
 
487
  static const char* ZORBA_OPTION_OPTIM_NS;
 
488
  static const char* ZORBA_VERSIONING_NS;
486
489
 
487
490
protected:
488
491
  static_context                        * theParent;
497
500
 
498
501
  BaseUriInfo                           * theBaseUriInfo;
499
502
 
500
 
  ztd::auto_vector<internal::URIMapper>       theURIMappers;
 
503
  ztd::auto_vector<internal::URIMapper>   theURIMappers;
501
504
 
502
 
  ztd::auto_vector<internal::URLResolver>     theURLResolvers;
 
505
  ztd::auto_vector<internal::URLResolver> theURLResolvers;
503
506
 
504
507
  checked_vector<zstring>                 theURIPath;
505
508
 
520
523
  xqtref_t                                theContextItemType;
521
524
 
522
525
  VariableMap                           * theVariablesMap;
523
 
  
 
526
 
524
527
  VariableMap                           * theImportedPrivateVariablesMap;
525
528
 
526
529
  FunctionMap                           * theFunctionMap;
599
602
 
600
603
  void serialize(serialization::Archiver& ar);
601
604
 
 
605
  void prepare_for_serialize(CompilerCB *compiler_cb);
 
606
 
602
607
public:
603
608
  static_context(::zorba::serialization::Archiver& ar);
604
609