$extrastylesheet
xdr_shead.h
Go to the documentation of this file.
00001 // The libMesh Finite Element Library.
00002 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
00003 
00004 // This library is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public
00006 // License as published by the Free Software Foundation; either
00007 // version 2.1 of the License, or (at your option) any later version.
00008 
00009 // This library is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 // Lesser General Public License for more details.
00013 
00014 // You should have received a copy of the GNU Lesser General Public
00015 // License along with this library; if not, write to the Free Software
00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017 
00018 #ifndef LIBMESH_XDR_SHEAD_H
00019 #define LIBMESH_XDR_SHEAD_H
00020 
00021 // Local includes
00022 #include "libmesh/xdr_head.h" // for base class
00023 #include "libmesh/xdr_soln.h" // for friend
00024 
00025 // C++ includes
00026 
00027 namespace libMesh
00028 {
00029 
00036 class XdrSHEAD : public XdrHEAD
00037 {
00038   friend class XdrSOLN;
00039 public:
00043   XdrSHEAD()                                    {}
00044 
00048   ~XdrSHEAD()                                   {}
00049 
00054   void setNumVar(int numvar)                    { m_numvar = numvar; }
00055 
00056   //     /**
00057   //      * Get the total number of
00058   //      * solution variables.
00059   //      */
00060   //     int  getNumVar() const                        { return m_numvar; }
00061 
00066   void setWrtVar(int wrtVar)                    { m_wrtVar = wrtVar; }
00067 
00072   int  getWrtVar() const                        { return m_wrtVar; }
00073 
00077   void setMeshCnt(int meshCnt)                  { m_meshCnt = meshCnt; }
00078 
00079   //     /**
00080   //      * Get the mesh file number.
00081   //      */
00082   //     int  getMeshCnt() const                       { return m_meshCnt; }
00083 
00088   void setKstep(int kstep)                      { m_kstep = kstep; }
00089 
00090   //     /**
00091   //      * Get the solution step
00092   //      * number.
00093   //      */
00094   //     int  getKstep() const                         { return m_kstep; }
00095 
00099   void setTime(Real time)                       { m_time = time; }
00100 
00101   //     /**
00102   //      * Get the solution time.
00103   //      */
00104   //     Real getTime() const                          { return m_time; }
00105 
00109   void setUserTitle(const char* title)          { delete [] mp_userTitle; mp_userTitle = cpyString(title); }
00110 
00114   const char* getUserTitle() const              { return mp_userTitle; }
00115 
00120   void setVarTitle(const char* titles, int len) { delete [] mp_varTitle; mp_varTitle = cpyString(titles, len); }
00121 
00126   const char* getVarTitle() const               { return mp_varTitle; }
00127 
00128 };
00129 
00130 
00131 } // namespace libMesh
00132 
00133 #endif // LIBMESH_XDR_SHEAD_H