Dev:Source/Development/Projects/Blender File Format/XML/StructDefinitions

提供: wiki
移動先: 案内検索

XMLStructDefinitions

<


Back


home


Next


>

Struct Code

#ifndef DNA_XML_TYPES_H
#define DNA_XML_TYPES_H

#include "DNA_listBase.h"
 
/* These structs are not meant to be written to file so the rule of 8 does not apply but still use it just in case blender ever needs xml types in the scenes - zap */ 
typedef struct xml_property {
 /* pointers to traverse the property list */ struct xml_property *next, *prev;  /* actual xml property data */ char propName[32]; char value[128];

} xml_property;

typedef struct xml_object {  /* pointers for traversing the xml tree */ struct xml_object *next, *prev; ListBase child_list, prop_list; struct xml_object *parent;  /* actual data of the xml tag */ char tagName[32]; int contentType, pad1; /* since it is concievable xml objects will be scene objects one day we are using               standard DNA Struct Guidlines in our structs                                  */ char content[128]; 
} xml_object; 

typedef struct xml_doc {  struct xml_object *root; /* the root of our document in case we get lost :-) */ struct xml_object *cursor; /* current position in the xml document */ 
} xml_doc;

Description of Structs and their use

Comments

<


Back


home


Next


>

-- DeveloperWikiJeremyWall - 09 Oct 2004