cpp-pistache-server.api-base-header.mustache Maven / Gradle / Ivy
{{>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