G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsHBSpline.hpp
Go to the documentation of this file.
1 
14 #include <gsIO/gsXml.h>
16 
17 namespace gismo
18 {
19 
20 namespace internal
21 {
22 
23 
25 template<class T, short_t d>
26 class gsXml< gsHBSpline<d,T> >
27 {
28 private:
29  gsXml() { }
30 public:
31  GSXML_COMMON_FUNCTIONS(gsHBSpline<TMPLA2(d,T)>);
32  static std::string tag () { return "Geometry"; }
33  static std::string type () { return "HBSpline"+to_string(d); }
34 
35  static gsHBSpline<d,T> * get (gsXmlNode * node)
36  {
37  return getGeometryFromXml< gsHBSpline<d,T> >(node);
38  }
39 
40  static gsXmlNode * put (const gsHBSpline<d,T> & obj,
41  gsXmlTree & data )
42  {
43  return putGeometryToXml< gsHBSpline<d,T> >(obj,data);
44  }
45 };
46 
47 
48 } // end namespace internal
49 
50 } // end namespace gismo
Provides implementation of generic XML functions.
std::string to_string(const unsigned &i)
Helper to convert small unsigned to string.
Definition: gsXml.cpp:74
Provides declaration of input/output XML utilities struct.