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

Functions

trace_return_t addContType (const char *alias, const char *contType, const char *name)
 Add a Container Type. More...
 
trace_return_t addContainer (varPrec time, const char *alias, const char *type, const char *container, const char *name, const char *file)
 Add a Container. More...
 
trace_return_t destroyContainer (varPrec time, const char *name, const char *type)
 Destroy a Container. More...
 
trace_return_t AddComment (const char *comment)
 Add some Comment in Trace file. More...
 

Detailed Description

Function Documentation

◆ AddComment()

trace_return_t AddComment ( const char *  comment)

Add some Comment in Trace file.

Parameters
commentComment to be added
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ addContainer()

trace_return_t addContainer ( varPrec  time,
const char *  alias,
const char *  type,
const char *  container,
const char *  name,
const char *  file 
)

Add a Container.

Parameters
timeTime at which the container is added
aliasAlias of the new container
typeType of the new container
containerContainer parent
nameAlternative name of the variable type
fileFile containing the container for vite format. Use "0" or "" chains for other formats.
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ addContType()

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

Add a Container Type.

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

◆ destroyContainer()

trace_return_t destroyContainer ( varPrec  time,
const char *  name,
const char *  type 
)

Destroy a Container.

Parameters
timeTime at which the container is destroyed
nameName of the container
typeType of the container
Returns
TRACE_SUCCESS on success
An error code otherwise