#ifndef AGDBMATERIALHH #define AGDBMATERIALHH #include #include "ExpatInterface/Element.h" #include "agdbBase.hh" #include "agdbAttribute.hh" namespace agdb { class Material : public Base { private: Attribute _name; public: Material() : Base("material"), _name("name", Attribute::required) { }; void putMeIn(xml::Element & parent) { assert("This is rubbish" && false); // LESTER cout << "material put me in" << endl; xml::Element * child = new xml::Element(); assert(child); parent.addChild(child); child->setTagName(Base::getTagName()); _name.addAttributeTo(child); }; public: Material & setName(const std::string & s) { _name.setValue(s); return *this; }; const std::string getName() const { return _name.getSetOrDefaultValue(); }; }; } // end of agdb namespace #endif