1 #include "csf.h"
2 #include "csfimpl.h"
3 
4 
5 /* headers of this app. modules called */
6 
7 /***************/
8 /* EXTERNALS   */
9 /***************/
10 
11 /**********************/
12 /* LOCAL DECLARATIONS */
13 /**********************/
14 
15 /*********************/
16 /* LOCAL DEFINITIONS */
17 /*********************/
18 
19 /******************/
20 /* IMPLEMENTATION */
21 /******************/
22 
23 /* returns default cell representation of a value scale/cellRepr
24  * returns
25  *  the appropriate cell representation constant (CR_something)
26  *  or CR_UNDEFINED if vs is not a csf2 datatype
27  *
28  */
RdefaultCellRepr(CSF_VS vs)29 CSF_CR RdefaultCellRepr(
30 	CSF_VS     vs) /* value scale */
31 {
32 	switch(vs) {
33 	 case VS_LDD:
34 	 case VS_BOOLEAN: return CR_UINT1;
35 	 case VS_NOMINAL:
36 	 case VS_ORDINAL: return CR_INT4;
37 	 case VS_SCALAR:
38 	 case VS_DIRECTION: return CR_REAL4;
39          case VS_CLASSIFIED: return CR_UINT1;
40          case VS_CONTINUOUS: return CR_REAL4;
41          case VS_NOTDETERMINED:
42          default:
43          	 return  CR_UNDEFINED;
44       }
45 }
46