All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cpp-pistache-server.api-base-header.mustache Maven / Gradle / Ivy

There is a newer version: 7.6.0
Show newest version
{{>licenseInfo}}
/*
 * ApiBase.h
 *
 * Generalization of the Api classes
 */

#ifndef ApiBase_H_
#define ApiBase_H_

#include 
#include 

namespace {{apiNamespace}}
{

class ApiBase {
public:
    explicit ApiBase(const std::shared_ptr& rtr) : router(rtr) {};
    virtual ~ApiBase() = default;
    virtual void init() = 0;

protected:
    const std::shared_ptr router;
};

} // namespace {{apiNamespace}}

#endif /* ApiBase_H_ */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy