Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
gml_parser.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file gml_parser.h
1
/* This software is distributed under the GNU Lesser General Public License */
2
//==========================================================================
3
//
4
// gml_parser.h
5
//
6
//==========================================================================
7
// $Id: gml_parser.h,v 1.7 2000/01/05 16:32:36 raitner Exp $
8
9
#ifndef GTL_GML_PARSER_H
10
#define GTL_GML_PARSER_H
11
12
#include <
GTL/GTL.h
>
13
#include <
GTL/gml_scanner.h
>
14
15
__GTL_BEGIN_NAMESPACE
16
20
union
GTL_EXTERN
GML_pair_val
{
21
long
integer
;
22
double
floating
;
23
char
*
str
;
24
struct
GML_pair
*
list
;
25
};
26
30
struct
GTL_EXTERN
GML_pair
{
31
char
*
key
;
32
GML_value
kind
;
33
union
GML_pair_val
value
;
34
struct
GML_pair
*
next
;
35
};
36
40
struct
GTL_EXTERN
GML_list_elem
{
41
char
*
key
;
42
struct
GML_list_elem
*
next
;
43
};
44
48
struct
GTL_EXTERN
GML_stat
{
49
struct
GML_error
err
;
50
struct
GML_list_elem
*
key_list
;
51
};
52
53
/*
54
* returns list of KEY - VALUE pairs. Errors and a pointer to a list
55
* of key-names are returned in GML_stat. Previous information contained
56
* in GML_stat, i.e. the key_list, will be *lost*.
57
*/
58
59
GTL_EXTERN
GML_pair
*
GML_parser
(FILE*,
GML_stat
*,
int
);
60
61
/*
62
* free memory used in a list of GML_pair
63
*/
64
65
GTL_EXTERN
void
GML_free_list
(
GML_pair
*,
GML_list_elem
*);
66
67
68
/*
69
* debugging
70
*/
71
72
GTL_EXTERN
void
GML_print_list
(
GML_pair
*,
int
);
73
74
__GTL_END_NAMESPACE
75
76
#endif // GTL_GML_PARSER_H
77
78
//--------------------------------------------------------------------------
79
// end of file
80
//--------------------------------------------------------------------------
JETSCAPE
blob
main
external_packages
gtl
include
GTL
gml_parser.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:23
using
1.8.2 with
sPHENIX GitHub integration