Generic Trace Generator (GTG)  0.1
Functions
Functions related to the states

Functions

trace_return_t addStateType (const char *alias, const char *contType, const char *name)
 Add a State Type. More...
 
trace_return_t setState (varPrec time, const char *type, const char *cont, const char *val)
 Set the State of a Container. More...
 
trace_return_t pushState (varPrec time, const char *type, const char *cont, const char *val)
 Save the current State on a stack and change the State of a Container. More...
 
trace_return_t popState (varPrec time, const char *type, const char *cont)
 Revert the State of a Container to its previous value. More...
 

Detailed Description

Function Documentation

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

Add a State Type.

Parameters
aliasAlias on the state type added
contTypeType of container of these states
nameAlternative name of the state type
Returns
TRACE_SUCCESS on success
An error code otherwise
trace_return_t popState ( varPrec  time,
const char *  type,
const char *  cont 
)

Revert the State of a Container to its previous value.

Parameters
timeTime the state changes
typeType of the state
contContainer whose state changes
Returns
TRACE_SUCCESS on success
An error code otherwise
trace_return_t pushState ( varPrec  time,
const char *  type,
const char *  cont,
const char *  val 
)

Save the current State on a stack and change the State of a Container.

Parameters
timeTime the state changes
typeType of the state
contContainer whose state changes
valValue of state of container
Returns
TRACE_SUCCESS on success
An error code otherwise
trace_return_t setState ( varPrec  time,
const char *  type,
const char *  cont,
const char *  val 
)

Set the State of a Container.

Parameters
timeTime the state changes
typeType of the state
contContainer whose state changes
valValue of new state of container
Returns
TRACE_SUCCESS on success
An error code otherwise