$interface=<<END_OF_INTERFACE;
/** \@file ${STRUCTURE}.h
*
- * Definition of GiNaC's user defined structure ${STRUCTURE}.
+ * Definition of GiNaC's user defined structure ${STRUCTURE}. */
+
+/*
* This file was generated automatically by structure.pl.
* Please do not modify it directly, edit the perl script instead!
*
#ifndef __GINAC_${STRUCTURE_UC}_H__
#define __GINAC_${STRUCTURE_UC}_H__
-#include <ginac/ginac.h>
+#include <ginac/structure.h>
+
+namespace GiNaC {
class ${STRUCTURE} : public structure
{
#define ex_to_${STRUCTURE}(X) (static_cast<${STRUCTURE} const &>(*(X).bp))
+} // namespace GiNaC
+
#endif // ndef _${STRUCTURE_UC}_H_
END_OF_INTERFACE
$implementation=<<END_OF_IMPLEMENTATION;
/** \@file ${STRUCTURE}.cpp
*
- * Implementation of GiNaC's user defined structure ${STRUCTURE}.
+ * Implementation of GiNaC's user defined structure ${STRUCTURE}. */
+
+/*
* This file was generated automatically by STRUCTURE.pl.
* Please do not modify it directly, edit the perl script instead!
*
#include <iostream>
-#include "ginac.h"
+#include "${STRUCTURE}.h"
+
+namespace GiNaC {
//////////
// default constructor, destructor, copy constructor assignment operator and helpers
type_info const & typeid_${STRUCTURE}=typeid(some_${STRUCTURE});
const unsigned tinfo_${STRUCTURE}=structure::register_new("${STRUCTURE}");
+} // namespace GiNaC
+
END_OF_IMPLEMENTATION
print "Creating interface file ${STRUCTURE}.h...";