Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

func.h

Go to the documentation of this file.
00001 #ifndef FILE_FUNC_H
00002 #define FILE_FUNC_H
00003 
00004 class Element;
00005 class Elements;
00006 
00007 enum ByteOrder { LittleEndian, BigEndian };
00008 enum ComplexType { Union, Struct };
00009 
00010 // create a list of element adding a single element
00011 Elements* createElements(Element* element);
00012 
00013 // add an element to a list of elements
00014 Elements* addElement(Elements* elements,Element* element);
00015 
00016 // create a complex element
00017 Element* createElement(enum ComplexType type,Elements* elements,char* name);
00018 
00019 // create an element given an already defined complex type
00020 // number can be NULL
00021 // ex: Point pts[4];
00022 Element* createDefinedElement(char* type,char* name,char* number);
00023 
00024 // create a simple element given size (1,2,4,8 negative if 
00025 // signed and 0 padding)
00026 // number can be NULL
00027 Element* createSimpleElement(int type,char* name,char* number);
00028 
00029 // set byte order for following structure
00030 void setByteOrder(enum ByteOrder bo);
00031 
00032 // process a complex type an convert in C
00033 void processElement(enum ComplexType type,char* name,Elements* elements);
00034 
00035 #endif // FILE_FUNC_H
00036 

Generated on Mon Jan 13 22:20:34 2003 for perdr by doxygen1.2.15