Adding a simple example on how to call the lib

This commit is contained in:
Dennis Luxen
2013-06-27 13:21:33 -04:00
parent c940c2722e
commit a0e9f59e04
4 changed files with 94 additions and 5 deletions
-4
View File
@@ -30,13 +30,9 @@ class TimestampPlugin : public BasePlugin {
public:
TimestampPlugin(QueryObjectsStorage * o) : objects(o) {
}
~TimestampPlugin() {
std::cout << "shutdown time stamp" << std::endl;
}
std::string GetDescriptor() const { return std::string("timestamp"); }
std::string GetVersionString() const { return std::string("0.3 (DL)"); }
void HandleRequest(const RouteParameters & routeParameters, http::Reply& reply) {
std::cout << "handling request" << std::endl;
std::string tmp;
//json