Ensures normalization on waitfe/fc-xml operations
[anna.git] / source / ldap / Request.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #include <anna/xml/Node.hpp>
10
11 #include <anna/ldap/Request.hpp>
12
13 using namespace std;
14 using namespace anna;
15
16 string ldap::Request::asString() const
17 throw() {
18   string result("ldap::Request { ");
19   result += ClassCode::asString(a_classCode);
20   return result += " }";
21 }
22
23 xml::Node* ldap::Request::asXML(xml::Node* parent) const
24 throw() {
25   xml::Node* result = parent->createChild("ldap.Request");
26   result->createAttribute("ClassCode", ClassCode::asString(a_classCode));
27   return result;
28 }
29