MEPP2 Project
MeshReaderInterface.h
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as
6 // published by the Free Software Foundation; either version 3 of
7 // the License, or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #pragma once
12 
13 #include <string>
14 #include <boost/shared_ptr.hpp>
15 #include <boost/filesystem.hpp>
16 
17 namespace FEVV {
18 namespace DataStructures {
19 
20 template< typename TMeshOutput >
22 {
23 public:
24  // Basic type definitions.
25  typedef TMeshOutput output_type;
26  typedef boost::shared_ptr< output_type > ptr_output;
28 
29  virtual ptr_output read(const std::string &) = 0;
30 };
31 
32 } // namespace DataStructures
33 } // namespace FEVV
34 
FEVV::DataStructures::MeshReaderInterface::ptr_output
boost::shared_ptr< output_type > ptr_output
Definition: MeshReaderInterface.h:26
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::DataStructures::MeshReaderInterface::output_type
TMeshOutput output_type
Definition: MeshReaderInterface.h:25
FEVV::DataStructures::MeshReaderInterface::read
virtual ptr_output read(const std::string &)=0
FEVV::DataStructures::MeshReaderInterface
Definition: MeshReaderInterface.h:22