40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
/**
|
|
* Jungfraujoch
|
|
* API to control Jungfraujoch developed by the Paul Scherrer Institute (Switzerland). Jungfraujoch is a data acquisition and analysis system for pixel array detectors, primarly PSI JUNGFRAU. Jungfraujoch uses FPGA boards to acquire data at high data rates.
|
|
*
|
|
* The version of the OpenAPI document: 1.0.0-rc.27
|
|
* Contact: filip.leonarski@psi.ch
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/*
|
|
* ApiBase.h
|
|
*
|
|
* Generalization of the Api classes
|
|
*/
|
|
|
|
#ifndef ApiBase_H_
|
|
#define ApiBase_H_
|
|
|
|
#include <pistache/router.h>
|
|
#include <memory>
|
|
|
|
namespace org::openapitools::server::api
|
|
{
|
|
|
|
class ApiBase {
|
|
public:
|
|
explicit ApiBase(const std::shared_ptr<Pistache::Rest::Router>& rtr) : router(rtr) {};
|
|
virtual ~ApiBase() = default;
|
|
virtual void init() = 0;
|
|
|
|
protected:
|
|
const std::shared_ptr<Pistache::Rest::Router> router;
|
|
};
|
|
|
|
} // namespace org::openapitools::server::api
|
|
|
|
#endif /* ApiBase_H_ */
|