sopsax.h

Go to the documentation of this file.
00001 
00007 /*
00008  *  Copyright (c) BBC R&D 2001
00009  *
00010  *  This software is provided 'as-is', without any express or implied warranty.
00011  *  In no event will the authors be held liable for any damages arising from
00012  *  the use of this software.
00013  *
00014  *  Permission is granted to anyone to use this software for any purpose,
00015  *  including commercial applications, and to alter it and redistribute it
00016  *  freely, subject to the following restrictions:
00017  *
00018  *    1. The origin of this software must not be misrepresented; you must
00019  *       not claim that you wrote the original software. If you use this
00020  *       software in a product, an acknowledgment in the product
00021  *       documentation would be appreciated but is not required.
00022  *  
00023  *    2. Altered source versions must be plainly marked as such, and must
00024  *       not be misrepresented as being the original software.
00025  *  
00026  *    3. This notice may not be removed or altered from any source
00027  *       distribution.
00028  */
00029 
00030 #ifndef _SOPSAX_H
00031 #define _SOPSAX_H
00032 
00033 namespace mxflib
00034 {
00035     typedef struct sopSAXHandlerStruct sopSAXHandler;
00036     typedef sopSAXHandler *sopSAXHandlerPtr;
00037 
00038 
00039     /* Function pointer definitions */
00040     typedef void (*startElementSAXFunc) (void *, const char *, const char **);
00041     typedef void (*endElementSAXFunc) (void *, const char *);
00042     typedef void (*warningSAXFunc) (void *, const char *msg, ...);
00043     typedef void (*errorSAXFunc) (void *, const char *msg, ...);
00044     typedef void (*fatalErrorSAXFunc) (void *, const char *msg, ...);
00045 
00046 
00047     /* Handler structure */
00048     struct sopSAXHandlerStruct
00049     {
00050         startElementSAXFunc startElement;       /* startElement */
00051         endElementSAXFunc endElement;           /* endElement */
00052         warningSAXFunc warning;                 /* warning */
00053         errorSAXFunc error;                     /* error */
00054         fatalErrorSAXFunc fatalError;           /* fatalError */
00055     };
00056 
00057 
00058     /* Function Prototypes */
00059     bool sopSAXParseFile(sopSAXHandlerPtr sax, void *UserData, const char *filename);
00060 }
00061 
00062 #endif /* _SOPSAX_H */

Generated on Mon Apr 2 15:20:54 2007 for MXFLib by  doxygen 1.5.1-p1