#include "plaqui/server/connection.h"
#include "plaqui/server/controlserver.h"
#include <sigc++/class_slot.h>
#include "plaqui/server/connection.h"
#include "plaqui/server/controlserver.h"
#include <sigc++/class_slot.h>
void Server::on_control_command_received(const Command& command,
ControlServer* controlserver) {
#ifdef DEBUG
void Server::on_control_command_received(const Command& command,
ControlServer* controlserver) {
#ifdef DEBUG
<< command.get_target() << ", command = " << command.get_command()
<< ", args = [" << String::join(command.get_args(), ", ") << "])"
<< endl;
<< command.get_target() << ", command = " << command.get_command()
<< ", args = [" << String::join(command.get_args(), ", ") << "])"
<< endl;
xml << "\t<authors>" << endl;
xml << "\t\t<author>Nicolás Dimov</author>" << endl;
xml << "\t\t<author>Leandro Lucarella</author>" << endl;
xml << "\t<authors>" << endl;
xml << "\t\t<author>Nicolás Dimov</author>" << endl;
xml << "\t\t<author>Leandro Lucarella</author>" << endl;
return new HTTPResponse(HTTPMessage::NOT_FOUND,
string("<response desc=\"No existe la planta ") + plant + "\" />");
}
return new HTTPResponse(HTTPMessage::NOT_FOUND,
string("<response desc=\"No existe la planta ") + plant + "\" />");
}
string xml = plants[plant]->get_xml();
if (xml.length()) {
return new HTTPResponse(HTTPMessage::OK, xml);
string xml = plants[plant]->get_xml();
if (xml.length()) {
return new HTTPResponse(HTTPMessage::OK, xml);