Building Controls Virtual Test Bed
dummy/utilXml.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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. More...
 
]
Parameters
fileNamethe xml file name.
expthe xPath expression.
strstring to store the found values, semicolon separated.
nValsnumber of values found.
strLenthe string length allocated.
int getxmlvalues (char *const fileName, char *const exp, char *const myVals, int *const myNumVals, int const myStrLen)
 
int getnumberofxmlvalues (char *const fileName, char *const exp)
 
int getxmlvaluesf (char *const fileName, char *const exp, char *const atrName, int *const nVal, char *const str, int *const strLen)
 
int getxmlvalue (char *const fileName, char *const exp, char *const str, int *const nVals, int const strLen)
 
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 specified in the variables configuration file. More...
 

Function Documentation

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 specified in the variables configuration file.

Return values: -1 Error in the file 0 File is validate

Definition at line 869 of file util/utilXml.c.

References fprintf().

Referenced by getepvariables(), and getxmlvaluesf().

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.

Parameters
fileNamethe variable configuration file name.
myOutputVarsNameArray to store the output variable names found.
myOutputvarsTypeArray to store the output variable types found.
myNumOutputVarsInteger holder to store number of output variables found.
myInputKeysArray to store the input variable keys.
myNumInputKeysInteger holder to store number of input variable keys.
myInputVarsArray to store the name of input variables found.
myNumInputVarsInteger holder to store number of input variables found.
myInputVarsTypeInteger array to store the corresponding input variable types in myInputVars.
myStrLenThe length of the string that is passed to this function.

Definition at line 241 of file util/utilXml.c.

References Buff, BUFFSIZE, check_variable_cfg_Validate(), EPend(), EPstart(), ERROR_STATUS, fprintf(), freeResource(), i, inputKeys, inputVars, inputVarsType, numInputKeys, numInputVars, numOutputVars, outputVarsName, outputVarsType, source, and strLen.

int getnumberofxmlvalues ( char *const  fileName,
char *const  exp 
)

Definition at line 729 of file util/utilXml.c.

References fprintf(), getxmlvalues(), PARSEVALUE, and strLen.

int getxmlvalue ( char *const  fileName,
char *const  exp,
char *const  str,
int *const  nVals,
int const  strLen 
)

Definition at line 828 of file util/utilXml.c.

References fprintf(), getxmlvalues(), and PARSEVALUE.

Referenced by getsockethost(), and getsocketportnumber().

int getxmlvalues ( char *const  fileName,
char *const  exp,
char *const  myVals,
int *const  myNumVals,
int const  myStrLen 
)
int getxmlvaluesf ( char *const  fileName,
char *const  exp,
char *const  atrName,
int *const  nVal,
char *const  str,
int *const  strLen 
)

This part of the code is for compatibility with the BCVTB version 0.2 and earlier

This part of the code is for compatibility with the BCVTB version 0.2 and earlier

Definition at line 775 of file util/utilXml.c.

References check_variable_cfg_Validate(), fprintf(), getxmlvalues(), and PARSEVALUE.