110 #if defined(__amigaos__) && defined(__USE_INLINE__)
111 #include <proto/expat.h>
114 #ifdef XML_LARGE_SIZE
115 #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
116 #define XML_FMT_INT_MOD "I64"
118 #define XML_FMT_INT_MOD "ll"
121 #define XML_FMT_INT_MOD "l"
125 #define BUFFSIZE 8192
170 EPstart(
void *data,
const char *el,
const char **attr);
180 EPend(
void *data,
const char *el);
210 char*
const myOutputVarsName,
211 char*
const myOutputVarsType,
212 int*
const myNumOutputVars,
213 char*
const myInputKeys,
214 int*
const myNumInputKeys,
215 char*
const myInputVars,
216 int*
const myNumInputVars,
217 int*
const myInputVarsType,
218 int*
const myStrLen);
239 char*
const myOutputVarsName,
240 char*
const myOutputVarsType,
241 int*
const myNumOutputVars,
242 char*
const myInputKeys,
243 int*
const myNumInputKeys,
244 char*
const myInputVars,
245 int*
const myNumInputVars,
246 int*
const myInputVarsType,
247 int*
const myStrLen);
282 int*
const myNumVals,
291 start(
void *data,
const char *el,
const char **attr);
299 end(
void *data,
const char *el);
static void XMLCALL EPstart(void *data, const char *el, const char **attr)
Call back functions that will be used by the expat xml parser.
static void XMLCALL EPend(void *data, const char *el)
Call back functions that will be used by the expat xml parser.
int getepvariablesFMU(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. ...
int * inputVarsType
the ineger array to store the types of each input variables
char Buff[BUFFSIZE]
Local buffer for reading in the xml file.
int * numVals
Local global variable for function getxmlvalue.
Stack expStk
Variables for getxmlvalue function.
int * numOutputVars
the integer pointer to the number of output variables
char * outputVarsName
local global variables for function getepvariables
int PARSEVALUE
flag for parsing xml values 1 if parse, 0 if not parse
char * vals
Local global variable for function getxmlvalue.
void freeResource(char **strArr, int n)
This method frees the local memory allocated.
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 getxmlvalues(char *const fileName, char *const exp, char *const myVals, int *const myNumVals, int const myStrLen)
const int * strLen
the length of string parsed to this function
char * att
Local global variable for function getxmlvalue.
int numInputKeys
the number of input variable types
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. ...
static void XMLCALL start(void *data, const char *el, const char **attr)
Call back functions that will be used by the expat xml parser.
static void XMLCALL end(void *data, const char *el)
Call back functions that will be used by the expat xml parser.
int ERROR_STATUS
flag for xml element handler error status settings
int stackPushBCVTB(char *str)
Stack operation, will push one element into the stack and will allocate memory for the new element...
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 ...
int getnumberofxmlvalues(char *const fileName, char *const exp)
int stackPopBCVTB()
Stack operation, this function will pop one element from stack and will free the resource unused...
int source
flag for function /c getepvariables 0=EnergyPlus, 1=Ptolemy
char * outputVarsType
the string pointer to the parsed output variable types
char ** inputKeys
the string array to store the types of input variable types
int * numInputVars
the integer pointer to the number of input variables
char * inputVars
the string pointer to the input variables