Sync with 5.4.1
[deliverable/titan.core.git] / core / XER.hh
index 181f6afe324d8b1fd0a0c2cc17181b5f07cccdfa..6978498fb7fb20062dfa3d7116acccbec848ec09 100644 (file)
@@ -89,8 +89,10 @@ enum XER_flavor {
   as empty elements in BXER only. This also influences them in record-of */
   ANY_FROM       = 1U << 27, // 0x8000000 anyElement from ... or anyAttributes from ...
   ANY_EXCEPT     = 1U << 28, // 0x10000000 anyElement except ... or anyAttributes except ...
-  EXIT_ON_ERROR  = 1U << 29  /* 0x20000000 clean up and exit instead of throwing
+  EXIT_ON_ERROR  = 1U << 29, /* 0x20000000 clean up and exit instead of throwing
   a decoding error, used on alternatives of a union with USE-UNION */
+  XER_OPTIONAL   = 1U << 30, // 0x40000000 is an optional field of a record or set
+  BLOCKED        = 1U << 31  // 0x80000000 either ABSTRACT or BLOCK
 };
 
 /** WHITESPACE actions.
@@ -375,6 +377,16 @@ class TTCN_Buffer;
  */
 void write_ns_prefix(const XERdescriptor_t& p_td, TTCN_Buffer& p_buf);
 
+/** Return the namespace referred to by a prefix
+ *
+ * Finds the namespace specified by \a prefix in the module's namespace table
+ * and returns its URI. Returns NULL if the namespace is not found.
+ *
+ * @param prefix namespace prefix to be found
+ * @param p_td XER descriptor (contains the module to search in)
+ */
+const char* get_ns_uri_from_prefix(const char *prefix, const XERdescriptor_t& p_td);
+
 /** Output the beginning of an XML attribute.
  *
  * Writes a space, the attribute name (from \p p_td), and the string "='".
This page took 0.025968 seconds and 5 git commands to generate.