1//
2// OSPCodeWriter.h
3//
4// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
5// and Contributors.
6//
7// SPDX-License-Identifier: BSL-1.0
8//
9
10
11#ifndef OSPCodeWriter_INCLUDED
12#define OSPCodeWriter_INCLUDED
13
14
15#include "CodeWriter.h"
16
17
18class OSPCodeWriter: public CodeWriter
19 /// Code generator for OSP Web request handlers.
20{
21public:
22 OSPCodeWriter(const Page& page, const std::string& clazz);
23 /// Creates the CodeWriter, using the given Page.
24
25 ~OSPCodeWriter();
26 /// Destroys the PageReader.
27
28protected:
29 virtual void writeHeaderIncludes(std::ostream& ostr);
30 virtual void writeHandlerClass(std::ostream& ostr);
31 virtual void writeHandlerMembers(std::ostream& ostr);
32 virtual void writeFactoryClass(std::ostream& ostr);
33 virtual void writeImplIncludes(std::ostream& ostr);
34 virtual void writeConstructor(std::ostream& ostr);
35 virtual void writeFactory(std::ostream& ostr);
36 virtual void writeSession(std::ostream& ostr);
37};
38
39
40#endif // CodeWriter_INCLUDED
41