~juan457/+junk/zorba

« back to all changes in this revision

Viewing changes to src/api/serialization/serializer.h

  • Committer: Markos Zaharioudakis
  • Date: 2012-07-11 15:38:39 UTC
  • mfrom: (10924 zorba)
  • mto: This revision was merged to the branch mainline in revision 10932.
  • Revision ID: markos_za@yahoo.com-20120711153839-0mkh15cg2ubknchd
work in progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
  zstring version_string;          // this the version as a string
117
117
  short int indent;                // "yes" or "no", implemented
118
118
#ifdef ZORBA_WITH_JSON
119
 
  short int cloudscript_multiple_items;  // "no", "array", "appended", implemented
120
 
  short int cloudscript_extensions;      // implemented
121
 
  short int cloudscript_xdm_method;  // A legal value for "method", implemented
 
119
  short int jsoniq_multiple_items;  // "no", "array", "appended", implemented
 
120
  short int jsoniq_extensions;      // implemented
 
121
  short int jsoniq_xdm_method;      // A legal value for "method", implemented
 
122
  short int jsoniq_allow_mixed_xdm_jdm; // "yes" or "no", implemented
122
123
#endif /* ZORBA_WITH_JSON */
123
124
  bool version_has_default_value;  // Used during validation to set version to
124
125
                                   // "4.0" when output method is "html"
377
378
 
378
379
    void emit_json_array(store::Item* array, int depth);
379
380
 
380
 
    void emit_json_pair(store::Item* pair, int depth);
381
 
 
382
381
    void emit_json_value(store::Item* value, int depth);
383
382
 
384
 
    void emit_cloudscript_value(zstring type, zstring value, int depth);
 
383
    void emit_jsoniq_value(zstring type, zstring value, int depth);
385
384
 
386
 
    void emit_cloudscript_xdm_node(store::Item *item, int depth);
 
385
    void emit_jsoniq_xdm_node(store::Item *item, int depth);
387
386
 
388
387
    void emit_json_string(zstring string);
389
388
 
390
 
    store::Item_t theCloudScriptValueName;
 
389
    store::Item_t theJSONiqValueName;
391
390
    store::Item_t theTypeName;
392
391
    store::Item_t theValueName;
393
 
    store::Item_t theCloudScriptXDMNodeName;
 
392
    store::Item_t theJSONiqXDMNodeName;
394
393
 
395
394
    rchandle<emitter> theXMLEmitter;
396
395
    rchandle<transcoder> theXMLTranscoder;
425
424
      JESTATE_XDM
426
425
    }                           theEmitterState;
427
426
 
428
 
    serializer::emitter*        theEmitter;
 
427
    serializer::xml_emitter*        theXMLEmitter;
 
428
    serializer::json_emitter*       theJSONEmitter;
429
429
  };
430
430
 
431
431
#endif /* ZORBA_WITH_JSON */