xdr_shead.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 #ifndef LIBMESH_XDR_SHEAD_H
19 #define LIBMESH_XDR_SHEAD_H
20 
21 // Local includes
22 #include "libmesh/xdr_head.h" // for base class
23 #include "libmesh/xdr_soln.h" // for friend
24 
25 // C++ includes
26 
27 namespace libMesh
28 {
29 
36 class XdrSHEAD : public XdrHEAD
37 {
38  friend class XdrSOLN;
39 public:
43  XdrSHEAD() {}
44 
48  ~XdrSHEAD() {}
49 
54  void setNumVar(int numvar) { m_numvar = numvar; }
55 
56  // /**
57  // * Get the total number of
58  // * solution variables.
59  // */
60  // int getNumVar() const { return m_numvar; }
61 
66  void setWrtVar(int wrtVar) { m_wrtVar = wrtVar; }
67 
72  int getWrtVar() const { return m_wrtVar; }
73 
77  void setMeshCnt(int meshCnt) { m_meshCnt = meshCnt; }
78 
79  // /**
80  // * Get the mesh file number.
81  // */
82  // int getMeshCnt() const { return m_meshCnt; }
83 
88  void setKstep(int kstep) { m_kstep = kstep; }
89 
90  // /**
91  // * Get the solution step
92  // * number.
93  // */
94  // int getKstep() const { return m_kstep; }
95 
99  void setTime(Real time) { m_time = time; }
100 
101  // /**
102  // * Get the solution time.
103  // */
104  // Real getTime() const { return m_time; }
105 
109  void setUserTitle(const char* title) { delete [] mp_userTitle; mp_userTitle = cpyString(title); }
110 
114  const char* getUserTitle() const { return mp_userTitle; }
115 
120  void setVarTitle(const char* titles, int len) { delete [] mp_varTitle; mp_varTitle = cpyString(titles, len); }
121 
126  const char* getVarTitle() const { return mp_varTitle; }
127 
128 };
129 
130 
131 } // namespace libMesh
132 
133 #endif // LIBMESH_XDR_SHEAD_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:07 UTC

Hosted By:
SourceForge.net Logo