CAEN Utility
2.0.2
Utilities for CAEN projects
CAENXMLParserTypes.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* CAEN SpA - Software Division
4
* Via Vetraia, 11 - 55049 - Viareggio ITALY
5
* +39 0594 388 398 - www.caen.it
6
*
7
*******************************************************************************
8
*
9
* Copyright (C) 2019-2022 CAEN SpA
10
*
11
* This file is part of the CAEN Utility.
12
*
13
* The CAEN Utility is free software; you can redistribute it and/or
14
* modify it under the terms of the GNU Lesser General Public
15
* License as published by the Free Software Foundation; either
16
* version 3 of the License, or (at your option) any later version.
17
*
18
* The CAEN Utility is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
* Lesser General Public License for more details.
22
*
23
* You should have received a copy of the GNU Lesser General Public
24
* License along with the CAEN Utility; if not, see
25
* https://www.gnu.org/licenses/.
26
*
27
* SPDX-License-Identifier: LGPL-3.0-or-later
28
*
29
***************************************************************************/
37
#ifndef CAEN_INCLUDE_TYPES_CAENXMLPARSERTYPES_H_
38
#define CAEN_INCLUDE_TYPES_CAENXMLPARSERTYPES_H_
39
45
#ifdef __cplusplus
46
extern
"C"
{
47
#endif
48
49
#include <libxml/tree.h>
50
52
typedef
struct
{
53
xmlDoc *
doc
;
54
char
*
name
;
55
}
c_xmlfile_t
;
56
58
typedef
enum
{
59
c_xml_RetCode_Success
= 0,
60
c_xml_RetCode_GenericError
= -1,
61
c_xml_RetCode_NULL
= -2,
62
c_xml_RetCode_ParseError
= -3,
63
c_xml_RetCode_NotFound
= -4,
64
}
c_xml_RetCode_t
;
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif // CAEN_INCLUDE_TYPES_CAENXMLPARSERTYPES_H_
c_xml_RetCode_Success
Success.
Definition:
CAENXMLParserTypes.h:59
c_xmlfile_t
A wrapper to xmlDoc.
Definition:
CAENXMLParserTypes.h:52
c_xmlfile_t::name
char * name
the file path (or memory if a memory document passed by c_xml_newfile_from_memory()) ...
Definition:
CAENXMLParserTypes.h:54
c_xml_RetCode_NotFound
Data not found.
Definition:
CAENXMLParserTypes.h:63
c_xml_RetCode_t
c_xml_RetCode_t
XML Wrapper return codes.
Definition:
CAENXMLParserTypes.h:58
c_xml_RetCode_NULL
NULL pointer passed as argument.
Definition:
CAENXMLParserTypes.h:61
c_xmlfile_t::doc
xmlDoc * doc
the xmlDoc
Definition:
CAENXMLParserTypes.h:53
c_xml_RetCode_ParseError
Parser error.
Definition:
CAENXMLParserTypes.h:62
c_xml_RetCode_GenericError
Generic error.
Definition:
CAENXMLParserTypes.h:60
include
types
CAENXMLParserTypes.h
Generated on Mon Mar 11 2024 13:49:38 for CAEN Utility by
1.8.13