X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fapp%2FComponent.cpp;h=ca3e515d3e19d260e2c1b8890459787b7233c2fd;hb=f1060689be5a576ea46b9f95a91d19cc10444fba;hp=a77c084d0adefc4b54cca663bb680b62fc1d11da;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/app/Component.cpp b/source/app/Component.cpp index a77c084..ca3e515 100644 --- a/source/app/Component.cpp +++ b/source/app/Component.cpp @@ -20,7 +20,7 @@ using namespace std; using namespace anna; app::Component::Component(const char* className) : - a_className(className), + anna::Component(className), a_state(State::Stopped) { Application& app(app::functions::getApp()); @@ -111,18 +111,11 @@ throw(RuntimeException) { std::string app::Component::asString() const throw() { - std::string result("app::Component { Name: "); - result += a_className; - result += " | Reference: "; - result += functions::asHexString(anna_ptrnumber_cast(this)); - return result += " }"; + return anna::Component::asString(); } xml::Node* app::Component::asXML(xml::Node* parent) const throw() { - xml::Node* result = parent->createChild("app.Component"); - result->createAttribute("Name", a_className); - result->createAttribute("Reference", functions::asHexString(anna_ptrnumber_cast(this))); - return result; + return anna::Component::asXML(parent); }