view examples/rot13/Rot13Module.cpp @ 41:7c8cd74023ce

Rework file layout, fix build, add README and SUPPORT
author Louis Opter <kalessin@kalessin.fr>
date Mon, 22 Mar 2010 02:08:24 +0100
parents src/examples/rot13/Rot13Module.cpp@aa427c18ffe2
children
line wrap: on
line source

#include "Rot13Module.hpp"
#include "Rot13Handler.hpp"

ModRot13::ModRot13()
    : _name("Rot13Module"),
      _version("0.1"),
      _handlers()
{
    zia::api::handler::IHandler * rot13Handler = new Rot13Handler;

    this->_handlers.push_back(rot13Handler);
}

const std::string & ModRot13::getName(void) const
{
    return (this->_name);
}

const std::string & ModRot13::getVersion(void) const
{
    return (this->_version);
}

const std::vector<zia::api::handler::IHandler *> &  ModRot13::getHandlers(void) const
{
    return (this->_handlers);
}

bool     ModRot13::configure(zia::api::IConfig *)
{
    return (0);
}