xmsgrid  1.0
XmUGridUtils.h
Go to the documentation of this file.
1 #pragma once
2 //------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------
9 
10 //----- Included files ---------------------------------------------------------
11 
12 // 3. Standard library headers
13 
14 // 4. External library headers
15 
16 // 5. Shared code headers
18 #include <xmscore/stl/vector.h>
19 
20 //----- Forward declarations ---------------------------------------------------
21 
22 //----- Namespace declaration --------------------------------------------------
23 
25 namespace xms
26 {
27 //----- Forward declarations ---------------------------------------------------
28 class XmUGrid;
29 
30 //----- Constants / Enumerations -----------------------------------------------
31 
32 //----- Structs / Classes ------------------------------------------------------
33 
34 //----- Function prototypes ----------------------------------------------------
35 
36 // IO
37 std::shared_ptr<XmUGrid> XmReadUGridFromAsciiFile(const std::string& a_filePath);
38 std::shared_ptr<XmUGrid> XmReadUGridFromStream(std::istream& a_istream);
39 void XmWriteUGridToAsciiFile(std::shared_ptr<XmUGrid> a_ugrid, const std::string& a_filePath);
40 void XmWriteUGridToStream(std::shared_ptr<XmUGrid> a_ugrid, std::ostream& a_outStream);
41 void XmWriteUGridToStream(const XmUGrid& a_ugrid, std::ostream& a_outStream, bool a_binary = false);
42 
43 } // namespace xms
std::shared_ptr< XmUGrid > XmReadUGridFromStream(std::istream &a_inStream)
Read an XmUGrid from ASCII text from an input stream.
void XmWriteUGridToStream(std::shared_ptr< XmUGrid > a_ugrid, std::ostream &a_outStream)
Save an XmUGrid ASCII text to output stream.
void XmWriteUGridToAsciiFile(std::shared_ptr< XmUGrid > a_ugrid, const std::string &a_filePath)
Write an XmUGrid to an ASCII file.
XMS Namespace.
Definition: geoms.cpp:34
std::shared_ptr< XmUGrid > XmReadUGridFromAsciiFile(const std::string &a_filePath)
Read XmUGrid from an ASCII file.