/
netdata.h
91 lines (77 loc) · 2.42 KB
/
netdata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
* Copyright (C) 1992, Board of Trustees of the University of Illinois.
*
* Permission is granted to copy and distribute source with out fee.
* Commercialization of this product requires prior licensing
* from the National Center for Supercomputing Applications of the
* University of Illinois. Commercialization includes the integration of this
* code in part or whole into a product for resale. Free distribution of
* unmodified source and use of NCSA software is not considered
* commercialization.
*
*/
/* $Id: netdata.h,v 1.1.1.1 1995/01/11 00:03:40 alanb Exp $ */
#ifndef HAS_NET_DATA_DOT_H_BEEN_INCLUDED_BEFORE
#define HAS_NET_DATA_DOT_H_BEEN_INCLUDED_BEFORE
#include <libdtm/dtm.h>
#include <libdtm/vdata.h>
#include "collage.h"
/* Entity type */
#define ENT_Internal 1
#define ENT_File 2
#define ENT_Network 3
#define ENT_Interactive 4
/* Data Object Type */
#define DOT_Unknown 100
#define DOT_VData 101
#define DOT_Array 102
#define DOT_Text 103
#define DOT_Image 104
#define DOT_Palette8 105
#define DOT_SDL 106
/* Data Object SubType */
#define DOST_Float 200
#define DOST_Char 201
#define DOST_Int16 202
#define DOST_Int32 203
#define DOST_Double 204
#define anim_axis view_type
#define MAX_ARRAY_DIM 50
/*
defined in vdata.h
typedef struct {
int nodeID;
char *nodeName;
} VdataPathElement;
*/
typedef struct DATA {
char *label; /* data object label*/
int entity; /* entity type */
int dot; /* Data Object Type */
int dost; /* Data Object Subtype */
int dim[MAX_ARRAY_DIM]; /* array of dimensions */
int rank; /* number of dimensions */
GenericPtr data; /* data */
IntOrFloat min;
IntOrFloat max;
int view_type;
VdataPathElement **magicPath; /* Vdata path */
int pathLength; /* do we want this Marc? */
int nodeID; /* this Vdata's ID */
char *nodeName; /* this Vdata's name */
char *fields; /* ? */
float expandX; /* expand X image */
float expandY; /* expand Y image */
char *associated; /* associated data */
struct DATA *group; /* group with any */
} Data;
extern Data *DataNew PARAMS((void));
extern void DataDestroy PARAMS((Data *d));
extern int InitData PARAMS((void));
extern void DataAddEntry PARAMS((Data *d));
extern Data *DataSearchByLabel PARAMS((char *s));
extern Data *DataSearchByLabelAndDOT PARAMS((char *s, int dot));
extern Data *DataSearchByLabelAndDOTAndDOST
PARAMS((char *s, int dot, int dost));
extern int DataInList PARAMS((Data *d));
#endif