Nektar++
PtsIO.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File PtsIO.h
4 //
5 // For more information, please see: http://www.nektar.info
6 //
7 // The MIT License
8 //
9 // Copyright (c) 2014 Kilian Lackhove
10 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
11 // Department of Aeronautics, Imperial College London (UK), and Scientific
12 // Computing and Imaging Institute, University of Utah (USA).
13 //
14 // License for the specific language governing rights and limitations under
15 // Permission is hereby granted, free of charge, to any person obtaining a
16 // copy of this software and associated documentation files (the "Software"),
17 // to deal in the Software without restriction, including without limitation
18 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 // and/or sell copies of the Software, and to permit persons to whom the
20 // Software is furnished to do so, subject to the following conditions:
21 //
22 // The above copyright notice and this permission notice shall be included
23 // in all copies or substantial portions of the Software.
24 //
25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
26 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
28 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
31 // DEALINGS IN THE SOFTWARE.
32 //
33 // Description: Pts IO prototype definitions
34 //
35 ///////////////////////////////////////////////////////////////////////////////
36 
37 #ifndef NEKTAR_LIB_UTILITIES_BASIC_UTILS_PTSIO_H
38 #define NEKTAR_LIB_UTILITIES_BASIC_UTILS_PTSIO_H
39 
40 #include <string>
41 #include <vector>
42 
43 #include <boost/shared_ptr.hpp>
44 
45 #include <tinyxml.h>
46 
51 
52 using namespace std;
53 namespace Nektar
54 {
55 namespace LibUtilities
56 {
57 
58 LIB_UTILITIES_EXPORT void Import(const string &inFile,
59  PtsFieldSharedPtr &ptsField);
60 
61 LIB_UTILITIES_EXPORT void Write(const string &outFile,
62  const PtsFieldSharedPtr &ptsField);
63 
64 class PtsIO
65 {
66  public:
67 
69  {
70  };
71 
72  LIB_UTILITIES_EXPORT void Import(const string &inFile,
74 
76  const string &outFile,
77  const LibUtilities::PtsFieldSharedPtr &ptsField);
78 };
79 
80 typedef boost::shared_ptr<PtsIO> PtsIOSharedPtr;
81 
82 }
83 }
84 #endif
STL namespace.
boost::shared_ptr< PtsField > PtsFieldSharedPtr
Definition: PtsField.h:248
void Import(const std::string &infilename, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata, FieldMetaDataMap &fieldinfomap, const Array< OneD, int > ElementiDs)
Imports an FLD file.
Definition: FieldIO.cpp:106
#define LIB_UTILITIES_EXPORT
boost::shared_ptr< PtsIO > PtsIOSharedPtr
Definition: PtsIO.h:80
void Write(const std::string &outFile, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata, const FieldMetaDataMap &fieldinfomap)
Write a field file in serial only.
Definition: FieldIO.cpp:72