Cantera 2.6.0
ctxml.h
Go to the documentation of this file.
1/**
2 * @file ctxml.h
3 */
4
5// This file is part of Cantera. See License.txt in the top-level directory or
6// at https://cantera.org/license.txt for license and copyright information.
7
8#ifndef CTC_XML_H
9#define CTC_XML_H
10
11#include "clib_defs.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17 CANTERA_CAPI int xml_new(const char* name);
18 CANTERA_CAPI int xml_get_XML_File(const char* file, int debug);
19 CANTERA_CAPI int xml_del(int i);
20 CANTERA_CAPI int xml_copy(int i);
21 CANTERA_CAPI int xml_build(int i, const char* file);
22 CANTERA_CAPI int xml_attrib(int i, const char* key, size_t lenval, char* value);
23 CANTERA_CAPI int xml_addAttrib(int i, const char* key, const char* value);
24 CANTERA_CAPI int xml_addComment(int i, const char* comment);
25 CANTERA_CAPI int xml_value(int i, size_t lenval, char* value);
26 CANTERA_CAPI int xml_tag(int i, size_t lentag, char* tag);
27 CANTERA_CAPI int xml_child(int i, const char* loc);
28 CANTERA_CAPI int xml_child_bynumber(int i, int m);
29 CANTERA_CAPI int xml_findID(int i, const char* id);
30 CANTERA_CAPI int xml_findByName(int i, const char* nm);
31 CANTERA_CAPI int xml_nChildren(int i);
32 CANTERA_CAPI int xml_addChild(int i, const char* name, const char* value);
33 CANTERA_CAPI int xml_addChildNode(int i, int j);
34 CANTERA_CAPI int xml_write(int i, const char* file);
35 CANTERA_CAPI int xml_removeChild(int i, int j);
36 CANTERA_CAPI int ct_clearXML();
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif