Pol  Revision:cb584c9
uofile05.cpp
Go to the documentation of this file.
1 
7 #include <stdio.h>
8 
9 #include "../clib/logfacility.h"
10 #include "../pol/uofilei.h"
11 #include "../pol/ustruct.h"
12 
13 namespace Pol
14 {
15 namespace Core
16 {
17 void staticsmax()
18 {
19  unsigned int max = 0;
21 
22  fseek( sidxfile, 0, SEEK_SET );
23  for ( int xblock = 0; xblock < 6144 / 8; ++xblock )
24  {
25  for ( int yblock = 0; yblock < 4096 / 8; ++yblock )
26  {
27  fread( &idxrec, sizeof idxrec, 1, sidxfile );
28 
29  if ( idxrec.length != 0xFFffFFffLu )
30  {
31  if ( idxrec.length > max )
32  {
33  max = idxrec.length;
34  INFO_PRINT << "Max: " << max << ", X=" << xblock << ", Y=" << yblock << "\n";
35  }
36  }
37  }
38  }
39 }
40 }
41 }
void staticsmax()
Definition: uofile05.cpp:17
FILE * sidxfile
Definition: uofile00.cpp:22
USTRUCT_IDX idxrec
Definition: uofile02.cpp:34
#define INFO_PRINT
Definition: logfacility.h:223
Definition: berror.cpp:12