COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Writer.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 #ifndef cf3_mesh_tecplot_Writer_hpp
8 #define cf3_mesh_tecplot_Writer_hpp
9 
11 
12 #include "mesh/MeshWriter.hpp"
13 #include "mesh/GeoShape.hpp"
14 
16 
18 
19 namespace cf3 {
20 namespace mesh {
21  class ElementType;
22 namespace tecplot {
23 
25 
29 {
30 public: // typedefs
31 
32 
33 
34 
35 public: // functions
36 
38  Writer( const std::string& name );
39 
41  static std::string type_name() { return "Writer"; }
42 
43  virtual void write();
44 
45  virtual std::string get_format() { return "tecplot"; }
46 
47  virtual std::vector<std::string> get_extensions();
48 
49 private: // functions
50 
51  void write_file(std::fstream& file);
52 
53  std::string zone_type(const ElementType& etype) const;
54 
55 private: // data
56 
57 
58 }; // end Writer
59 
60 
62 
63 } // tecplot
64 } // mesh
65 } // cf3
66 
68 
69 #endif // cf3_mesh_tecplot_Writer_hpp
std::string name(ComponentWrapper &self)
static std::string type_name()
Gets the Class name.
Definition: Writer.hpp:41
#define tecplot_API
Definition: LibTecplot.hpp:22
Top-level namespace for coolfluid.
Definition: Action.cpp:18
virtual std::string get_format()
Definition: Writer.hpp:45
Send comments to:
COOLFluiD Web Admin