예제 #1
0
avtVis5DFileFormat::~avtVis5DFileFormat()
{
    if(v5dfile != 0)
    {
        v5dCloseFile(v5dfile);
    }
}
예제 #2
0
void
avtVis5DFileFormat::FreeUpResources(void)
{
    if(v5dfile != 0)
    {
        v5dCloseFile(v5dfile);
        v5dfile = 0;
    }
}
예제 #3
0
main( int argc, char *argv[] )
{
   v5dstruct v;

   if (argc!=2) {
      printf("Usage:\n");
      printf("   v5dinfo file\n");
      exit(0);
   }

   if (!v5dOpenFile( argv[1], &v )) {
      printf("Error: couldn't open %s\n", argv[1] );
      exit(0);
   }

   v5dPrintStruct( &v );

   v5dCloseFile( &v );
   exit(0);
}