UNIVERS
15.3
UNIVERS base processing software API
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
mth
cust_defs.h
1
/* cust_defs.h */
2
/* $Id: cust_defs.h,v 1.3 2007/10/10 11:52:14 vlad Exp $ */
3
#ifndef __cust_defs_h
4
#define __cust_defs_h
5
6
/***********************************************************************
7
* Item order in super cube storage.
8
*/
9
typedef
enum
10
{
11
AlaC,
12
AlaFortran
13
} item_order_t;
14
15
16
/***********************************************************************
17
* Iteratable method.
18
*/
19
typedef
int (*cube_iter_proc_t) (
int
* i);
20
21
22
#ifndef GEVSP
23
/***********************************************************************
24
* Cube storage stream file header.
25
* Stream file format:
26
* -------------------h-e-a-d-e-r---------------------------------------
27
* +0 - signature ("CSs v1.0") - cube storage stream, version 1.0;
28
* +4 - magic to determine byte order (0x12345678);
29
* +5 - item order: 'c' or 'f';
30
* +8 - number of dimensions (n);
31
* +12 - size of item (in bytes);
32
* ---------------------------------------------------------------------
33
* +16+4*i - dimension with index i (0,1,2,...n-1);
34
* +16+4*n - value of the cell with index (0,0,0...0);
35
*/
36
typedef
struct
37
{
38
#define CSS_SIGNATURE "CSs v1.0"
39
Char signature[8];
40
Int4 magic;
41
Char item_order[4];
/* [0] */
42
Int4 dim_num;
43
Int4 item_size;
44
45
}
cust_stream_header_t
;
46
#endif
/* GEVSP */
47
48
49
#endif
/* cust_defs.h */
cust_stream_header_t
Definition:
cust_defs.h:36
Generated by
1.8.5