All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
clusttool.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Filename: clusttool.h
3  ** Purpose: Definition of clustering utility tools
4  ** Author: Dan Johnson
5  ** History: 6/6/89, DSJ, Created.
6  **
7  ** (c) Copyright Hewlett-Packard Company, 1988.
8  ** Licensed under the Apache License, Version 2.0 (the "License");
9  ** you may not use this file except in compliance with the License.
10  ** You may obtain a copy of the License at
11  ** http://www.apache.org/licenses/LICENSE-2.0
12  ** Unless required by applicable law or agreed to in writing, software
13  ** distributed under the License is distributed on an "AS IS" BASIS,
14  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ** See the License for the specific language governing permissions and
16  ** limitations under the License.
17  ******************************************************************************/
18 #ifndef __CLUSTERTOOL__
19 #define __CLUSTERTOOL__
20 
21 //--------------------------Include Files---------------------------------------
22 #include "host.h"
23 #include "cluster.h"
24 #include <stdio.h>
25 
26 /*-------------------------------------------------------------------------
27  Public Funtion Prototype
28 --------------------------------------------------------------------------*/
29 uinT16 ReadSampleSize(FILE *File);
30 
31 PARAM_DESC *ReadParamDesc(FILE *File, uinT16 N);
32 
33 PROTOTYPE *ReadPrototype(FILE *File, uinT16 N);
34 
35 PROTOSTYLE ReadProtoStyle(FILE *File);
36 
37 FLOAT32 *ReadNFloats (FILE * File, uinT16 N, FLOAT32 Buffer[]);
38 
39 void WriteParamDesc (FILE * File, uinT16 N, PARAM_DESC ParamDesc[]);
40 
41 void WritePrototype(FILE *File, uinT16 N, PROTOTYPE *Proto);
42 
43 void WriteNFloats (FILE * File, uinT16 N, FLOAT32 Array[]);
44 
45 void WriteProtoStyle(FILE *File, PROTOSTYLE ProtoStyle);
46 
47 void WriteProtoList(
48  FILE *File,
49  uinT16 N,
50  PARAM_DESC ParamDesc[],
51  LIST ProtoList,
52  BOOL8 WriteSigProtos,
53  BOOL8 WriteInsigProtos);
54 
55 //--------------Global Data Definitions and Declarations---------------------
56 // define errors that can be trapped
57 #define ILLEGALSAMPLESIZE 5000
58 #define ILLEGALCIRCULARSPEC 5001
59 #define ILLEGALMINMAXSPEC 5002
60 #define ILLEGALSIGNIFICANCESPEC 5003
61 #define ILLEGALSTYLESPEC 5004
62 #define ILLEGALSAMPLECOUNT 5005
63 #define ILLEGALMEANSPEC 5006
64 #define ILLEGALVARIANCESPEC 5007
65 #define ILLEGALDISTRIBUTION 5008
66 #define ILLEGALFLOAT 5009
67 #define ILLEGALESSENTIALSPEC 5013
68 #endif
float FLOAT32
Definition: host.h:111
PROTOTYPE * ReadPrototype(FILE *File, uinT16 N)
Definition: clusttool.cpp:113
uinT16 ReadSampleSize(FILE *File)
Definition: clusttool.cpp:43
unsigned char BOOL8
Definition: host.h:113
void WriteParamDesc(FILE *File, uinT16 N, PARAM_DESC ParamDesc[])
Definition: clusttool.cpp:314
void WriteProtoList(FILE *File, uinT16 N, PARAM_DESC ParamDesc[], LIST ProtoList, BOOL8 WriteSigProtos, BOOL8 WriteInsigProtos)
Definition: clusttool.cpp:444
PARAM_DESC * ReadParamDesc(FILE *File, uinT16 N)
Definition: clusttool.cpp:66
FLOAT32 * ReadNFloats(FILE *File, uinT16 N, FLOAT32 Buffer[])
Definition: clusttool.cpp:281
void WriteNFloats(FILE *File, uinT16 N, FLOAT32 Array[])
Definition: clusttool.cpp:393
PROTOSTYLE ReadProtoStyle(FILE *File)
Definition: clusttool.cpp:241
void WritePrototype(FILE *File, uinT16 N, PROTOTYPE *Proto)
Definition: clusttool.cpp:343
PROTOSTYLE
Definition: cluster.h:44
void WriteProtoStyle(FILE *File, PROTOSTYLE ProtoStyle)
Definition: clusttool.cpp:410
unsigned short uinT16
Definition: host.h:101