ESyS-Particle  2.3
MeshReaderImpl.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __MESHREADERIMPL_H
14 #define __MESHREADERIMPL_H
15 
16 // --- Project includes ---
17 #include "MeshReader.h"
18 
19 // --- STL includes ---
20 #include <string>
21 
22 using std::string;
23 
24 // --- IO includes ---
25 #include <iostream>
26 
27 using std::istream;
28 
29 namespace esys
30 {
31  namespace lsm
32  {
43  {
44  public:
45  // types
46  typedef std::auto_ptr<NodeReader> NodeReaderPtr;
47  typedef std::auto_ptr<TriReader> TriReaderPtr;
48  typedef std::auto_ptr<istream> IStreamPtr;
49 
50  // variables
51  NodeReaderPtr m_node_reader_ptr;
52  TriReaderPtr m_tri_reader_ptr;
53  IStreamPtr m_istream_ptr;
54  string m_file_name;
55 
56  // functions
57 
58  Impl(const string&);
59  void initialise();
60  };
61  }
62 }
63 #endif // __MESHREADERIMPL_H
implementation details for the mesh reader. Decouples Interface from implementation.
Definition: MeshReaderImpl.h:42
string m_file_name
Definition: MeshReaderImpl.h:54
std::auto_ptr< TriReader > TriReaderPtr
Definition: MeshReaderImpl.h:47
Impl(const string &)
Definition: MeshReaderImpl.cpp:37
Definition: CheckPointable.cpp:16
std::auto_ptr< istream > IStreamPtr
Definition: MeshReaderImpl.h:48
std::auto_ptr< NodeReader > NodeReaderPtr
Definition: MeshReaderImpl.h:46
IStreamPtr m_istream_ptr
Definition: MeshReaderImpl.h:53
TriReaderPtr m_tri_reader_ptr
Definition: MeshReaderImpl.h:52
NodeReaderPtr m_node_reader_ptr
Definition: MeshReaderImpl.h:51
void initialise()
Definition: MeshReaderImpl.cpp:43