Building Controls Virtual Test Bed
dummy/utilXml.c File Reference
#include "utilXml.h"
Include dependency graph for dummy/utilXml.c:

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 257 of file dummy/utilXml.c.

References fprintf().

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 123 of file dummy/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 178 of file dummy/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 239 of file dummy/utilXml.c.

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

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

Definition at line 209 of file dummy/utilXml.c.

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