Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

openfile.cxx File Reference

This example shows how to open a file in the result interface In this case is opens a file with the domain file reader using the C interface. More...

#include "resultlib/results.h"
#include "resultlib/rf_backend_interface.h"

Functions

int main (int argc, char **argv)
 The program creates the backend token in rfmi_create_cback(), then executes rf_write_to_pipe() with returned token. More...


Detailed Description

This example shows how to open a file in the result interface In this case is opens a file with the domain file reader using the C interface.

One can cast the interface to the C++ interface and use additional C++ features. Note that multiple reading of mesh at the same time step has no effect.

By default the file read is the domain file prism_domain.1. To run this program with any other file type for which a reader exists

./openfile.out <reader> <file>

in particular

./openfile.out ./readexuns.out

will read using the example reader. No file is required for the example reader. Also can run readexuns_c.out or readexuns_ftn.out.


Function Documentation

int main ( int argc,
char ** argv )
 

The program creates the backend token in rfmi_create_cback(), then executes rf_write_to_pipe() with returned token.

C'est tout.


Generated at Wed Mar 2 11:16:26 2005 for Result Library by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000