4 * Copyright (c) 1993, 1994 Barton P. Miller, Jeff Hollingsworth,
5 * Bruce Irvin, Jon Cargille, Krishna Kunchithapadam, Karen
6 * Karavanic, Tia Newhall, Mark Callaghan. All rights reserved.
8 * This software is furnished under the condition that it may not be
9 * provided or otherwise made available to, or used by, any other
10 * person, except as provided for by the terms of applicable license
11 * agreements. No title to or ownership of the software is hereby
12 * transferred. The name of the principals may not be used in any
13 * advertising or publicity related to this software without specific,
14 * written prior authorization. Any use of this software must include
15 * the above copyright notice.
18 /* $Log: visiTypes.h,v $
19 /* Revision 1.2 1994/05/23 20:55:19 newhall
20 /* To visi_GridCellHisto class: added deleted flag, SumValue
21 /* method function, and fixed AggregateValue method function
23 * Revision 1.1 1994/05/11 17:11:08 newhall
24 * changed data values from double to float
33 #define VISI_ERROR_BASE -19
34 #define ERROR_REALLOC -20
35 #define ERROR_CREATEGRID -21
36 #define ERROR_SUBSCRIPT -22
37 #define ERROR_AGGREGATE -23
38 #define ERROR_NOELM -24
39 #define ERROR_MALLOC -25
40 #define ERROR_STRNCPY -26
41 #define ERROR_INIT -27
42 #define VISI_ERROR_MAX -27
43 #define ERROR ((float) quiet_nan())
46 // event types associated with events from Paradyn to a visualization
48 typedef enum {DATAVALUES,INVALIDMETRICSRESOURCES,ADDMETRICSRESOURCES,
49 NEWMETRICSRESOURCES,PHASENAME,FOLD} msgTag;
52 typedef float sampleType;
53 typedef double timeType;
56 char *units; // how units are measured
57 char *name; // metric name for graph labeling
58 int Id; // unique metric Id
59 int aggregate; //either SUM or AVE
61 typedef struct metricStruct visi_metricType;
64 struct resourceStruct{
65 char *name; // resource name for graph labeling
66 int Id; // unique resource id
68 typedef struct resourceStruct visi_resourceType;
71 struct dataValueStruct{
77 typedef struct dataValueStruct visi_dataValue;
79 extern void visi_ErrorHandler(int errno,char *msg);