|
TPCCLIB
|
Exchanging information between PAR and TAC structures. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcmodels.h"#include "tpcpar.h"#include "tpctac.h"#include "tpctacmod.h"Go to the source code of this file.
Functions | |
| int | tacAllocateWithPAR (TAC *tac, PAR *par, int sampleNr, TPCSTATUS *status) |
| Allocate TAC based on data in PAR. | |
| int | parAllocateWithTAC (PAR *par, TAC *tac, int parNr, TPCSTATUS *status) |
| Allocate PAR based on data in TAC. | |
| int | tacToPAR (TAC *tac, PAR *par, TPCSTATUS *status) |
| Copy the contents of TAC struct into PAR struct. | |
Allocate PAR based on data in TAC.
Region number, names, etc are copied from given TAC.
| par | Pointer to initiated PAR struct; any old contents are deleted. PAR tacNr and parNr will be set, although contents will be empty. |
| tac | Pointer to TAC struct which contains at least the TAC number and names. |
| parNr | Nr of parameters to allocate. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 90 of file partac.c.
Referenced by tacToPAR().
Allocate TAC based on data in PAR.
TAC region number, names, and units are copied from given PAR.
| tac | Pointer to initiated TAC structure; any old contents are deleted. TAC sampleNr and tacNr will be set, although contents will be empty. |
| par | Pointer to PAR structure which contains at least the TAC number and names. |
| sampleNr | Nr of samples (time frames) to allocate. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 28 of file partac.c.
Copy the contents of TAC struct into PAR struct.
In addition to data, the header contents such as region names and units are copied if possible.
| tac | Pointer to the TAC struct to be copied. |
| par | Pointer to PAR struct; any old contents are deleted. |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 169 of file partac.c.