From a92cc1236ca7c5abee27e4360284b67297e39c15 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 14 May 2009 16:31:34 +0200 Subject: Support fixed size lists When using one of the list types as valuetype, the Map tag now also supports fixedsize and index_attr attributes. - fixedsize : Defines a fixed size of the list - index_attr : Defines an attribute name of the input XML data which contains the list index for the value --- src/xmlpythonizer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xmlpythonizer.h') diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h index 6c61381..d6fa54c 100644 --- a/src/xmlpythonizer.h +++ b/src/xmlpythonizer.h @@ -39,6 +39,8 @@ typedef struct ptzMAP_s { ptzTYPES type_value; char *value; // for ptzCONST key contains a static string, // the rest of types, an XPath to XML data + int fixed_list_size; // Only to be used on lists + char *list_index ; // Only to be used on fixed lists struct ptzMAP_s *child; // Only used for type_value == pyDICT struct ptzMAP_s *next; // Pointer chain -- cgit