Generic Trace Generator (GTG)  0.1
Functions
Functions related to variables

Functions

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

Detailed Description

Function Documentation

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
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
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
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