Back to index

salome-med  6.5.0
Functions
testUGeoNameMeshEntities.cxx File Reference
#include "MEDMEM_DriversDef.hxx"

Go to the source code of this file.

Functions

static void usage (char *name)
int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 36 of file testUGeoNameMeshEntities.cxx.

{
  
  if (argc < 1) usage(argv[0]);


  cout << "GEO_NAME Test" << endl ;
  cout << "-------------" << endl << endl;
  MED_EN::GEO_NAME::const_iterator currentGeom;
  for (currentGeom  = MED_EN::geoNames.begin();
       currentGeom != MED_EN::geoNames.end(); 
       currentGeom++) 
  {
                cout << (*currentGeom).second << endl;
  };

  MED_EN::MESH_ENTITIES::const_iterator currentEntity;
  list<MED_EN::medGeometryElement>::const_iterator currentGeometry;

  cout << endl; 
  cout << "MESH_ENTITIES Test" << endl ;
  cout << "------------------" << endl << endl;
  for (currentEntity  = MED_EN::meshEntities.begin();
       currentEntity != MED_EN::meshEntities.end(); 
       currentEntity++) 
  {
        cout << (*((MED_EN::entNames).find((*currentEntity).first))).second <<endl;
        for (currentGeometry  = (*currentEntity).second.begin();
             currentGeometry != (*currentEntity).second.end(); 
             currentGeometry++) 
        {
        cout << MED_EN::geoNames[(MED_EN::medGeometryElement)(*currentGeometry)] << endl;
        }
        cout << endl;
  }

}

Here is the call graph for this function:

static void usage ( char *  name) [static]

Definition at line 26 of file testUGeoNameMeshEntities.cxx.

{
  cout << "    " << name << endl;
  cout << "    " << "displays all avalaible geometry elements" << endl;
  cout << "    " << "display then all avalaible entities, and for each" << endl;
  cout << "    " << "all possible geomety element" << endl;
  cout << endl;
  exit(-1);
}

Here is the caller graph for this function: