COPASI API  4.16.103
CExpat.cpp
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2015 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 // Copyright (C) 2003 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 /**
16  * CExpatTemplate class.
17  * The class CExpatTemplate is a demplate definening a C++ interface to
18  * the expat library.
19  *
20  * Created for Copasi by Stefan Hoops 2003
21  */
22 
23 #include "copasi.h"
24 
25 #include "CExpat.h"
26 
27 #ifndef C_UNUSED
28 #define C_UNUSED(v)
29 #endif
30 
32 {}
33 
35 {}
36 
37 void CExpat::onStartElement(const XML_Char * C_UNUSED(pszName),
38  const XML_Char ** C_UNUSED(papszAttrs))
39 {return;}
40 
41 void CExpat::onEndElement(const XML_Char * C_UNUSED(pszName))
42 {return;}
43 
44 void CExpat::onCharacterData(const XML_Char * C_UNUSED(pszData),
45  int C_UNUSED(nLength))
46 {return;}
47 
48 void CExpat::onProcessingInstruction(const XML_Char * C_UNUSED(pszTarget),
49  const XML_Char * C_UNUSED(pszData))
50 {return;}
51 
52 void CExpat::onComment(const XML_Char * C_UNUSED(pszData))
53 {return;}
54 
56 {return;}
57 
59 {return;}
60 
61 void CExpat::onDefault(const XML_Char * C_UNUSED(pszData),
62  int C_UNUSED(nLength))
63 {return;}
64 
65 bool CExpat::onExternalEntityRef(const XML_Char * C_UNUSED(pszContext),
66  const XML_Char * C_UNUSED(pszBase),
67  const XML_Char * C_UNUSED(pszSystemID),
68  const XML_Char * C_UNUSED(pszPublicID))
69 {return false;}
70 
71 void CExpat::onSkippedEntityHandler(const XML_Char * /* entityName */,
72  int /* is_parameter_entity */)
73 {return;}
74 
75 bool CExpat::onUnknownEncoding(const XML_Char * C_UNUSED(pszName),
76  XML_Encoding * C_UNUSED(pInfo))
77 {return false;}
78 
79 void CExpat::onStartNamespaceDecl(const XML_Char * C_UNUSED(pszPrefix),
80  const XML_Char * C_UNUSED(pszURI))
81 {return;}
82 
83 void CExpat::onEndNamespaceDecl(const XML_Char * C_UNUSED(pszPrefix))
84 {return;}
85 
86 void CExpat::onXmlDecl(const XML_Char * C_UNUSED(pszVersion),
87  const XML_Char * C_UNUSED(pszEncoding),
88  bool C_UNUSED(fStandalone))
89 {return;}
90 
91 void CExpat::onStartDoctypeDecl(const XML_Char * C_UNUSED(pszDoctypeName),
92  const XML_Char * C_UNUSED(pszSysID),
93  const XML_Char * C_UNUSED(pszPubID),
94  bool C_UNUSED(fHasInternalSubset))
95 {return;}
96 
98 {return;}
virtual void onEndElement(const XML_Char *pszName)
Definition: CExpat.cpp:41
CExpat()
Definition: CExpat.cpp:31
virtual void onEndDoctypeDecl()
Definition: CExpat.cpp:97
virtual void onStartCdataSection()
Definition: CExpat.cpp:55
virtual ~CExpat()
Definition: CExpat.cpp:34
virtual void onProcessingInstruction(const XML_Char *pszTarget, const XML_Char *pszData)
Definition: CExpat.cpp:48
virtual void onStartDoctypeDecl(const XML_Char *pszDoctypeName, const XML_Char *pszSysID, const XML_Char *pszPubID, bool fHasInternalSubset)
Definition: CExpat.cpp:91
virtual bool onExternalEntityRef(const XML_Char *pszContext, const XML_Char *pszBase, const XML_Char *pszSystemID, const XML_Char *pszPublicID)
Definition: CExpat.cpp:65
virtual void onEndCdataSection()
Definition: CExpat.cpp:58
virtual void onComment(const XML_Char *pszData)
Definition: CExpat.cpp:52
virtual void onDefault(const XML_Char *pszData, int nLength)
Definition: CExpat.cpp:61
virtual void onXmlDecl(const XML_Char *pszVersion, const XML_Char *pszEncoding, bool fStandalone)
Definition: CExpat.cpp:86
virtual void onStartNamespaceDecl(const XML_Char *pszPrefix, const XML_Char *pszURI)
Definition: CExpat.cpp:79
virtual void onCharacterData(const XML_Char *pszData, int nLength)
Definition: CExpat.cpp:44
virtual void onEndNamespaceDecl(const XML_Char *pszPrefix)
Definition: CExpat.cpp:83
virtual void onStartElement(const XML_Char *pszName, const XML_Char **papszAttrs)
Definition: CExpat.cpp:37
virtual void onSkippedEntityHandler(const XML_Char *, int)
Definition: CExpat.cpp:71
#define C_UNUSED(v)
Definition: CExpat.cpp:28
virtual bool onUnknownEncoding(const XML_Char *pszName, XML_Encoding *pInfo)
Definition: CExpat.cpp:75