Building Controls Virtual Test Bed
dummy/utilXml.h
Go to the documentation of this file.
1 // Methods for parsing XML files.
2 
3 /*
4 ********************************************************************
5 Copyright Notice
6 ----------------
7 
8 Building Controls Virtual Test Bed (BCVTB) Copyright (c) 2008, The
9 Regents of the University of California, through Lawrence Berkeley
10 National Laboratory (subject to receipt of any required approvals from
11 the U.S. Dept. of Energy). All rights reserved.
12 
13 If you have questions about your rights to use or distribute this
14 software, please contact Berkeley Lab's Technology Transfer Department
15 at TTD@lbl.gov
16 
17 NOTICE. This software was developed under partial funding from the U.S.
18 Department of Energy. As such, the U.S. Government has been granted for
19 itself and others acting on its behalf a paid-up, nonexclusive,
20 irrevocable, worldwide license in the Software to reproduce, prepare
21 derivative works, and perform publicly and display publicly. Beginning
22 five (5) years after the date permission to assert copyright is obtained
23 from the U.S. Department of Energy, and subject to any subsequent five
24 (5) year renewals, the U.S. Government is granted for itself and others
25 acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide
26 license in the Software to reproduce, prepare derivative works,
27 distribute copies to the public, perform publicly and display publicly,
28 and to permit others to do so.
29 
30 
31 Modified BSD License agreement
32 ------------------------------
33 
34 Building Controls Virtual Test Bed (BCVTB) Copyright (c) 2008, The
35 Regents of the University of California, through Lawrence Berkeley
36 National Laboratory (subject to receipt of any required approvals from
37 the U.S. Dept. of Energy). All rights reserved.
38 
39 Redistribution and use in source and binary forms, with or without
40 modification, are permitted provided that the following conditions are met:
41 
42  1. Redistributions of source code must retain the above copyright
43  notice, this list of conditions and the following disclaimer.
44  2. Redistributions in binary form must reproduce the above copyright
45  notice, this list of conditions and the following disclaimer in
46  the documentation and/or other materials provided with the
47  distribution.
48  3. Neither the name of the University of California, Lawrence
49  Berkeley National Laboratory, U.S. Dept. of Energy nor the names
50  of its contributors may be used to endorse or promote products
51  derived from this software without specific prior written permission.
52 
53 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
54 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
55 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
56 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
57 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
58 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
59 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
60 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
61 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
62 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
63 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64 
65 You are under no obligation whatsoever to provide any bug fixes,
66 patches, or upgrades to the features, functionality or performance of
67 the source code ("Enhancements") to anyone; however, if you choose to
68 make your Enhancements available either publicly, or directly to
69 Lawrence Berkeley National Laboratory, without imposing a separate
70 written license agreement for such Enhancements, then you hereby grant
71 the following license: a non-exclusive, royalty-free perpetual license
72 to install, use, modify, prepare derivative works, incorporate into
73 other computer software, distribute, and sublicense such enhancements or
74 derivative works thereof, in binary and source code form.
75 
76 ********************************************************************
77 */
78 
103 
120 int getepvariables( char* const fileName,
121  char* const myOutputVarsName,
122  char* const myOutputVarsType,
123  int* const myNumOutputVars,
124  char* const myInputKeys,
125  int* const myNumInputKeys,
126  char* const myInputVars,
127  int* const myNumInputVars,
128  int* const myInputVarsType,
129  int* const myStrLen);
130 
148 int
149 getxmlvalues(char* const fileName,
150  char* const exp,
151  char* const myVals,
152  int* const myNumVals,
153  int const myStrLen);
154 
170 int getnumberofxmlvalues( char* const fileName,
171  char* const exp);
172 
199 int getxmlvaluesf(char* const fileName,
200  char* const exp,
201  char* const atrName,
202  int* const nVal,
203  char* const str,
204  int* const strLen);
205 
227 int getxmlvalue(char* const fileName,
228  char* const exp,
229  char* const str,
230  int* const nVals,
231  int const strLen);
232 
243 int check_variable_cfg_Validate(char* const fileName);
244 
int check_variable_cfg_Validate(char *const fileName)
This method checks the validity of the variables configuration xml file for a given dtd file that is ...
Definition: util/utilXml.c:869
int getxmlvalues(char *const fileName, char *const exp, char *const myVals, int *const myNumVals, int const myStrLen)
Definition: util/utilXml.c:549
const int * strLen
the length of string parsed to this function
Definition: util/utilXml.h:159
int getnumberofxmlvalues(char *const fileName, char *const exp)
Definition: util/utilXml.c:729
int getxmlvalue(char *const fileName, char *const exp, char *const str, int *const nVals, int const strLen)
Definition: util/utilXml.c:828
int getepvariables(char *const fileName, char *const myOutputVarsName, char *const myOutputVarsType, int *const myNumOutputVars, char *const myInputKeys, int *const myNumInputKeys, char *const myInputVars, int *const myNumInputVars, int *const myInputVarsType, int *const myStrLen)
This method will return the input and output variable for EnergyPlus in sequence. ...
Definition: util/utilXml.c:241
int getxmlvaluesf(char *const fileName, char *const exp, char *const atrName, int *const nVal, char *const str, int *const strLen)
Definition: util/utilXml.c:775