Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
WebService/Sources/WebServer.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _StroikaSample_WebServices_WebServer_h_
5#define _StroikaSample_WebServices_WebServer_h_ 1
6
7#include "Stroika/Frameworks/StroikaPreComp.h"
8
9#include <memory>
10
11#include "Stroika/Foundation/Containers/Collection.h"
12#include "Stroika/Foundation/Containers/Sequence.h"
13
14#include "IWSAPI.h"
15
16namespace StroikaSample::WebServices {
17
18 using namespace std;
19
20 /**
21 * WebServer handles basic HTTP web server technology, and translates to ISAPI interface web-service implementation methods.
22 * This internally does all the marshalling (serialization/deserialization) of the web service parameters into a clean C++ API (IWSAPI).
23 */
24 class WebServer {
25 public:
26 WebServer (uint16_t portNumber, const shared_ptr<IWSAPI>& wsImpl);
27
28 private:
29 class Rep_;
30 shared_ptr<Rep_> fRep_;
31 };
32
33}
34
35/*
36 ********************************************************************************
37 ***************************** Implementation Details ***************************
38 ********************************************************************************
39 */
40#include "WebServer.inl"
41
42#endif /*_StroikaSample_WebServices_WebServer_h_*/
STL namespace.