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

  time | Time the variable is incremented
  type | Type of the variable
  cont | Container containing the variable
  val | Value 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

  alias | Alias on the variable type
  contType | Type of container
  name | Alternative 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

  time | Time the variable changes
  type | Type of the variable
  cont | Container containing the variable
  val | New 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

  time | Time the variable is incremented
  type | Type of the variable
  cont | Container containing the variable
  val | Value substracted

Returns
  TRACE_SUCCESS on success
  An error code otherwise