Feel++ 0.91.0
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)
 Importer (std::string const &filename, MeshFormat const &format=GMSH)
void setFilename (std::string const &__filename)
void setFormat (MeshFormat const &__format)
std::string const & filename () const
MeshFormat format () 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) [inline]

default constructor. use GMSH as default mesh format

template<typename MeshType >
Feel::Importer< MeshType >::Importer ( std::string const &  filename,
MeshFormat const &  format = GMSH 
) [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