Feel++  0.91.4
Public Types | Public Member Functions
Feel::Importer< MeshType > Class Template Reference

#include <importer.hpp>

Inheritance diagram for Feel::Importer< MeshType >:
Feel::VisitorBase Feel::Visitor< MeshType > Feel::ImporterGambit< MeshType > Feel::ImporterGmsh< MeshType >

List of all members.

Public Types

typedef MeshType mesh_type
typedef mesh_type::point_type point_type
typedef point_type::node_type node_type
typedef mesh_type::edge_type edge_type
typedef mesh_type::face_type face_type
typedef mesh_type::element_type element_type

Public Member Functions

 Importer (MeshFormat const &_format=GMSH, WorldComm const &_worldcomm=WorldComm())
 Importer (std::string const &_filename, MeshFormat const &_format=GMSH, WorldComm const &_worldcomm=WorldComm())
void setFilename (std::string const &__filename)
void setFormat (MeshFormat const &__format)
std::string const & filename () const
MeshFormat format () const
WorldComm const & worldComm () const

Detailed Description

template<typename MeshType>
class Feel::Importer< MeshType >

import mesh data formats into Feel mesh data structure.

Author:
Christophe Prud'homme <christophe.prudhomme@ujf-grenoble.fr>

Constructor & Destructor Documentation

template<typename MeshType >
Feel::Importer< MeshType >::Importer ( MeshFormat const &  _format = GMSH,
WorldComm const &  _worldcomm = WorldComm() 
) [inline]

default constructor. use GMSH as default mesh format

template<typename MeshType >
Feel::Importer< MeshType >::Importer ( std::string const &  _filename,
MeshFormat const &  _format = GMSH,
WorldComm const &  _worldcomm = WorldComm() 
) [inline]

constructor

Parameters:
filenamemesh filename to import
formatformat of the file

Member Function Documentation

template<typename MeshType >
std::string const& Feel::Importer< MeshType >::filename ( ) const [inline]
Returns:
the filename
template<typename MeshType >
MeshFormat Feel::Importer< MeshType >::format ( ) const [inline]
Returns:
the mesh format
template<typename MeshType >
void Feel::Importer< MeshType >::setFilename ( std::string const &  __filename) [inline]

set the file name

Parameters:
__filename
template<typename MeshType >
void Feel::Importer< MeshType >::setFormat ( MeshFormat const &  __format) [inline]

set the format of the mesh file

Parameters:
__formatformat
template<typename MeshType >
WorldComm const& Feel::Importer< MeshType >::worldComm ( ) const [inline]
Returns:
the world comm