Generic Trace Generator (GTG) 0.1
Functions related to variables

Functions

trace_return_t addVarType (const char *alias, const char *name, const char *contType)
 Add a Variable Type.
 
trace_return_t setVar (varPrec time, const char *type, const char *cont, varPrec val)
 Set a Variable value.
 
trace_return_t addVar (varPrec time, const char *type, const char *cont, varPrec val)
 Add a value to a Variable.
 
trace_return_t subVar (varPrec time, const char *type, const char *cont, varPrec val)
 Substract a value from a Variable.
 

Detailed Description

Function Documentation

◆ addVar()

trace_return_t addVar ( varPrec time,
const char * type,
const char * cont,
varPrec val )

Add a value to a Variable.

Parameters
timeTime the variable is incremented
typeType of the variable
contContainer containing the variable
valValue added
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ addVarType()

trace_return_t addVarType ( const char * alias,
const char * name,
const char * contType )

Add a Variable Type.

Parameters
aliasAlias on the variable type
contTypeType of container
nameAlternative name of the variable type
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ setVar()

trace_return_t setVar ( varPrec time,
const char * type,
const char * cont,
varPrec val )

Set a Variable value.

Parameters
timeTime the variable changes
typeType of the variable
contContainer containing the variable
valNew value of the variable
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ subVar()

trace_return_t subVar ( varPrec time,
const char * type,
const char * cont,
varPrec val )

Substract a value from a Variable.

Parameters
timeTime the variable is incremented
typeType of the variable
contContainer containing the variable
valValue substracted
Returns
TRACE_SUCCESS on success
An error code otherwise