EXIEncoder.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2007-2012 Siemens AG
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as published
  6. * by the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. * GNU Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /*******************************************************************
  19. *
  20. * @author Daniel.Peintner.EXT@siemens.com
  21. * @version 0.6
  22. * @contact Joerg.Heuer@siemens.com
  23. *
  24. * <p>Code generated by EXIdizer</p>
  25. ********************************************************************/
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. #ifndef EXI__ENCODER_H
  30. #define EXI__ENCODER_H
  31. #include "EXITypes.h"
  32. int exiInitEncoder(bitstream_t* stream, exi_state_t* state,
  33. exi_name_table_runtime_t runtimeTable);
  34. int exiEncodeStartDocument(bitstream_t* stream,
  35. exi_state_t* state);
  36. int exiEncodeEndDocument(bitstream_t* stream,
  37. exi_state_t* state);
  38. int
  39. exiEncodeStartElement(bitstream_t* stream,
  40. exi_state_t* state, eqname_t* se);
  41. int exiEncodeStartElementGeneric(bitstream_t* stream,
  42. exi_state_t* state, string_ascii_t* namespaceURI,
  43. string_ascii_t* localName);
  44. int exiEncodeEndElement(bitstream_t* stream,
  45. exi_state_t* state);
  46. int exiEncodeCharacters(bitstream_t* stream,
  47. exi_state_t* state, exi_value_t* val);
  48. int exiEncodeAttribute(bitstream_t* stream,
  49. exi_state_t* state, eqname_t* at, exi_value_t* val);
  50. int exiEncodeAttributeXsiNil(bitstream_t* stream,
  51. exi_state_t* state, exi_value_t* val);
  52. int exiEncodeAttributeXsiType(bitstream_t* stream,
  53. exi_state_t* state, exi_value_t* val);
  54. int exiEncodeListValue(bitstream_t* stream, exi_value_t* val,
  55. list_t lt);
  56. #endif
  57. #ifdef __cplusplus
  58. }
  59. #endif