[XML] pvApiCtx should be forwarded outside gateways.
[scilab.git] / scilab / modules / xml / sci_gateway / cpp / sci_insertion.cpp
1 /*
2  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  * Copyright (C) 2011 - DIGITEO - Calixte DENIZET
4  *
5  * This file must be used under the terms of the CeCILL.
6  * This source file is licensed as described in the file COPYING, which
7  * you should have received as part of this distribution.  The terms
8  * are also available at
9  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10  *
11  */
12
13 #include "insertion.hpp"
14 #include "XMLList_insertion.hpp"
15
16 int sci_percent_c_i_XMLDoc(char *fname, unsigned long fname_len)
17 {
18     return sci_insertion<org_modules_xml::XMLDocument, std::string>(fname, pvApiCtx);
19 }
20 /*--------------------------------------------------------------------------*/
21 int sci_percent_XMLElem_i_XMLDoc(char *fname, unsigned long fname_len)
22 {
23     return sci_insertion<org_modules_xml::XMLDocument, XMLElement>(fname, pvApiCtx);
24 }
25 /*--------------------------------------------------------------------------*/
26 int sci_percent_c_i_XMLElem(char *fname, unsigned long fname_len)
27 {
28     return sci_insertion<XMLElement, std::string>(fname, pvApiCtx);
29 }
30 /*--------------------------------------------------------------------------*/
31 int sci_percent_XMLElem_i_XMLElem(char *fname, unsigned long fname_len)
32 {
33     return sci_insertion<XMLElement, XMLElement>(fname, pvApiCtx);
34 }
35 /*--------------------------------------------------------------------------*/
36 int sci_percent_XMLAttr_i_XMLElem(char *fname, unsigned long fname_len)
37 {
38     return sci_insertion<XMLElement, XMLAttr>(fname, pvApiCtx);
39 }
40 /*--------------------------------------------------------------------------*/
41 int sci_percent_XMLList_i_XMLElem(char *fname, unsigned long fname_len)
42 {
43     return sci_insertion<XMLElement, XMLNodeList>(fname, pvApiCtx);
44 }
45 /*--------------------------------------------------------------------------*/
46 int sci_percent_XMLNs_i_XMLElem(char *fname, unsigned long fname_len)
47 {
48     return sci_insertion<XMLElement, XMLNs>(fname, pvApiCtx);
49 }
50 /*--------------------------------------------------------------------------*/
51 int sci_percent_XMLElem_i_XMLList(char *fname, unsigned long fname_len)
52 {
53     return sci_XMLList_insertion<XMLElement>(fname, pvApiCtx);
54 }
55 /*--------------------------------------------------------------------------*/
56 int sci_percent_XMLDoc_i_XMLList(char *fname, unsigned long fname_len)
57 {
58     return sci_XMLList_insertion<org_modules_xml::XMLDocument>(fname, pvApiCtx);
59 }
60 /*--------------------------------------------------------------------------*/
61 int sci_percent_c_i_XMLList(char *fname, unsigned long fname_len)
62 {
63     return sci_XMLList_insertion<std::string>(fname, pvApiCtx);
64 }
65 /*--------------------------------------------------------------------------*/
66 int sci_percent_XMLList_i_XMLList(char *fname, unsigned long fname_len)
67 {
68     return sci_XMLList_insertion<XMLNodeList>(fname, pvApiCtx);
69 }
70 /*--------------------------------------------------------------------------*/