Go to the documentation of this file.
130 PGSt_SMF_status returnStatus;
146 unsigned long cur_field_name_list_size=0;
149 routine =
"create_Vdata";
166 if (Vdata_name ==
NULL) {
198 if (Vdata_id ==
FAIL) {
199 sprintf(
msg,
"Vdata Name: %s", Vdata_name);
221 VSsetname(Vdata_id, Vdata_name);
259 memset(field_name_list,
'\0',
sizeof(field_name_list));
260 cur_field_name_list_size = 0;
268 cur_field_name_list_size += strlen(field_names[
i]);
271 sprintf(
msg,
"Vdata name = %s", Vdata_name);
276 strcat(field_name_list, field_names[
i]);
277 if (
i < num_fields-1)
278 strcat(field_name_list,
",");
320 if (returnStatus ==
FAIL) {
321 sprintf(
msg,
"Vdata Name: %s", Vdata_name);
328 status = VSsetfields(Vdata_id, field_name_list);
331 sprintf(
msg,
"Vdata Name: %s", Vdata_name);
void remember(char *Vdata_name, int32 Vdata_id)
#define MODIS_E_VSSETFIELDS
#define MODIS_E_FIELD_NAME_LIST_OVERRUN
#define MODIS_E_CREATE_VDATA_FIELD
#define MODIS_E_CREATE_VDATA
PGSt_SMF_status create_Vdata_field(char *Vdata_name, int32 Vdata_id, char *field_name, char *data_type, int32 order)
void log_fmt_msg(PGSt_SMF_status code, const char *routine, const char *msg_fmt,...)
PGSt_SMF_status create_Vdata(char *Vdata_name, char field_names[][VU_MAX_NAME_LENGTH], char data_types[][VU_MAX_DATA_TYPE_STRING_LENGTH], int16 num_fields, uint16 order[])
#define VU_MAX_NAME_LENGTH
#define VU_MAX_DATA_TYPE_STRING_LENGTH
#define MODIS_E_NULL_POINTER
#define VU_MAX_FIELD_NAME_LIST_SIZE